3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { public static $myStaticProperty; public $myInstanceProperty; } $staticPropertyName = 'myStaticProperty'; $instancePropertyName = 'myInstanceProperty'; MyClass::${$staticPropertyName} = 'my static value'; $obj = new MyClass(); $obj->{$instancePropertyName} = 'my instance value'; var_dump(MyClass::${$staticPropertyName}); var_dump($obj->{$instancePropertyName});

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.0.0beta10.0060.01116.80
8.0.0alpha30.0080.01216.84
8.0.0alpha20.0100.01316.64
8.0.0alpha10.0100.00716.51
7.4.90.0070.01016.51
7.4.80.0070.01018.80
7.4.70.0070.01016.65
7.4.60.0060.01216.48
7.4.50.0000.00816.52
7.4.40.0090.00622.27
7.4.30.0080.00816.46
7.4.00.0050.01214.93
7.3.210.0090.00916.36
7.3.200.0140.00419.39
7.3.190.0220.00316.27
7.3.180.0100.01316.59
7.3.170.0040.01516.34
7.3.160.0130.00316.33
7.3.120.0030.01214.71
7.3.110.0070.01014.56
7.3.100.0040.01414.92
7.3.90.0040.01214.54
7.3.80.0040.01114.92
7.3.70.0090.00314.80
7.3.60.0150.00014.77
7.3.50.0060.00614.70
7.3.40.0030.01015.04
7.3.30.0100.00715.00
7.3.20.0090.00016.75
7.3.10.0050.00816.70
7.3.00.0000.01416.72
7.2.330.0080.00816.55
7.2.320.0000.01716.38
7.2.310.0130.01016.32
7.2.300.0120.00616.78
7.2.290.0050.01116.33
7.2.250.0070.00714.84
7.2.240.0090.00914.93
7.2.230.0060.00915.21
7.2.220.0000.01215.02
7.2.210.0030.00915.03
7.2.200.0000.01514.80
7.2.190.0080.00815.14
7.2.180.0100.00714.98
7.2.170.0140.00315.11
7.2.160.0070.01114.97
7.2.150.0070.00716.85
7.2.140.0090.00616.79
7.2.130.0060.00616.86
7.2.120.0020.01116.95
7.2.110.0030.01016.90
7.2.100.0090.00516.69
7.2.90.0080.00716.96
7.2.80.0040.01116.79
7.2.70.0050.00816.74
7.2.60.0090.00516.82
7.2.50.0080.00816.81
7.2.40.0050.01016.76
7.2.30.0060.00817.01
7.2.20.0070.00516.88
7.2.10.0020.01316.76
7.2.00.0060.00617.76
7.1.330.0100.00715.86
7.1.320.0070.01015.62
7.1.310.0030.01315.41
7.1.300.0000.01515.77
7.1.290.0080.00415.39
7.1.280.0030.01315.81
7.1.270.0110.00815.56
7.1.260.0050.00515.71
7.1.250.0050.00915.78
7.1.240.0060.00615.52
7.1.230.0060.00915.75
7.1.220.0060.00615.76
7.1.210.0060.00915.56
7.1.200.0030.01015.60
7.1.190.0100.00715.77
7.1.180.0100.00615.68
7.1.170.0000.01115.79
7.1.160.0060.00615.34
7.1.150.0090.00315.75
7.1.140.0040.00415.64
7.1.130.0080.00815.81
7.1.120.0040.00415.72
7.1.110.0090.00315.65
7.1.100.0070.00715.37
7.1.90.0050.00515.68
7.1.80.0120.00015.84
7.1.70.0040.00916.72
7.1.60.0010.01216.58
7.1.50.0050.00716.74
7.1.40.0050.01216.73
7.1.30.0110.00616.75
7.1.20.0090.00616.64
7.1.10.0030.01216.69
7.1.00.0030.00816.53
7.0.330.0070.00715.18
7.0.320.0040.00815.65
7.0.310.0040.00415.39
7.0.300.0070.00715.43
7.0.290.0100.00315.51
7.0.280.0040.01115.10
7.0.270.0100.00315.14
7.0.260.0000.01115.61
7.0.250.0080.00415.31
7.0.240.0040.00415.09
7.0.230.0090.00315.10
7.0.220.0070.00715.48
7.0.210.0100.00315.29
7.0.200.0030.01016.39
7.0.190.0000.01216.55
7.0.180.0050.00916.64
7.0.170.0040.00916.52
7.0.160.0090.00416.54
7.0.150.0070.00516.54
7.0.140.0060.00716.45
7.0.130.0000.00916.44
7.0.120.0010.00916.51
7.0.110.0020.00916.49
7.0.100.0020.00716.54
7.0.90.0060.01116.58
7.0.80.0070.00516.59
7.0.70.0040.00716.49
7.0.60.0030.00616.41
7.0.50.0050.00516.58
7.0.40.0030.01015.59
7.0.30.0040.01015.51
7.0.20.0050.00415.58
7.0.10.0030.00715.48
7.0.00.0020.00615.55
5.6.400.0070.00714.55
5.6.390.0070.00714.51
5.6.380.0000.01214.54
5.6.370.0140.00014.40
5.6.360.0070.00314.45
5.6.350.0060.01014.48
5.6.340.0050.00514.39
5.6.330.0030.01014.25
5.6.320.0070.00714.38
5.6.310.0030.01014.54
5.6.300.0130.02017.50
5.6.290.0090.04617.57
5.6.280.0070.02117.70
5.6.270.0110.01817.62
5.6.260.0070.02517.66
5.6.250.0020.05117.54
5.6.240.0110.02917.75
5.6.230.0050.02817.73
5.6.220.0080.02817.54
5.6.210.0050.03217.60
5.6.200.0080.02717.54
5.6.190.0100.02617.66
5.6.180.0110.02217.49
5.6.170.0130.02017.59
5.6.160.0030.02417.57
5.6.150.0050.02417.74
5.6.140.0100.02717.67
5.6.130.0110.04117.56
5.6.120.0050.02717.58
5.6.110.0030.02617.44
5.6.100.0120.03717.84
5.6.90.0000.03417.70
5.6.80.0050.02817.40
5.6.70.0030.02817.15
5.6.60.0050.04017.28
5.6.50.0030.02617.45
5.6.40.0100.02517.29
5.6.30.0090.02417.31
5.6.20.0020.03117.41
5.6.10.0080.02417.22
5.6.00.0090.02117.27
5.5.380.0070.03817.65
5.5.370.0070.04317.67
5.5.360.0030.06617.65
5.5.350.0100.03617.65
5.5.340.0060.04318.06
5.5.330.0030.04518.10
5.5.320.0030.04818.18
5.5.310.0100.04217.70
5.5.300.0000.05917.86
5.5.290.0030.04818.03
5.5.280.0030.05118.09
5.5.270.0000.05618.02
5.5.260.0200.06818.17
5.5.250.0000.04617.93
5.5.240.0100.03617.65
5.5.230.0070.03917.65
5.5.220.0000.04817.65
5.5.210.0070.04517.65
5.5.200.0070.04017.65
5.5.190.0090.04117.65
5.5.180.0070.04417.65
5.5.160.0040.04717.65
5.5.150.0130.07517.65
5.5.140.0040.04217.65
5.5.130.0030.05417.65
5.5.120.0070.04417.65
5.5.110.0060.03717.65
5.5.100.0030.04417.65
5.5.90.0070.04117.65
5.5.80.0090.03417.65
5.5.70.0070.04017.65
5.5.60.0100.03417.65
5.5.50.0070.04317.65
5.5.40.0070.03617.65
5.5.30.0100.03317.65
5.5.20.0100.03417.65
5.5.10.0090.03717.65
5.5.00.0100.04417.65
5.4.450.0090.04119.27
5.4.440.0070.04019.31
5.4.430.0040.04319.39
5.4.420.0030.05119.52
5.4.410.0070.04219.26
5.4.400.0070.03919.07
5.4.390.0100.05518.99
5.4.380.0230.03619.07
5.4.370.0060.04319.04
5.4.360.0000.04618.92
5.4.350.0090.03418.88
5.4.340.0040.04619.07
5.4.320.0110.04719.11
5.4.310.0190.05718.90
5.4.300.0070.04119.07
5.4.290.0060.04019.08
5.4.280.0100.05219.08
5.4.270.0100.03719.07
5.4.260.0030.04419.08
5.4.250.0100.03418.94
5.4.240.0100.04319.10
5.4.230.0120.03318.98
5.4.220.0070.04118.96
5.4.210.0030.04118.98
5.4.200.0090.03519.15
5.4.190.0030.04318.98
5.4.180.0160.02919.07
5.4.170.0100.03718.97
5.4.160.0090.04118.93
5.4.150.0070.04219.05
5.4.140.0130.03217.65
5.4.130.0100.03517.65
5.4.120.0040.04317.65
5.4.110.0030.03917.65
5.4.100.0150.03017.65
5.4.90.0090.03117.65
5.4.80.0130.06217.65
5.4.70.0060.03817.65
5.4.60.0000.05617.65
5.4.50.0110.03617.65
5.4.40.0000.04017.65
5.4.30.0100.04817.65
5.4.20.0070.03517.65
5.4.10.0030.04617.65
5.4.00.0100.03117.65
5.3.290.0000.04717.65
5.3.280.0230.03317.65
5.3.270.0090.03517.65
5.3.260.0000.04917.65
5.3.250.0110.03217.65
5.3.240.0130.02917.65
5.3.230.0100.04317.65
5.3.220.0070.04017.65
5.3.210.0090.03617.65
5.3.200.0090.03217.65
5.3.190.0100.05317.65
5.3.180.0000.05017.65
5.3.170.0170.05417.65
5.3.160.0090.04017.65
5.3.150.0100.04217.65
5.3.140.0030.03917.65
5.3.130.0030.04217.65
5.3.120.0070.04017.65
5.3.110.0100.03717.65
5.3.100.0100.03317.65
5.3.90.0130.07217.65
5.3.80.0100.05617.65
5.3.70.0170.07017.65
5.3.60.0030.04217.65
5.3.50.0070.03717.65
5.3.40.0030.03717.65
5.3.30.0070.03417.65
5.3.20.0000.04017.65
5.3.10.0100.03017.65
5.3.00.0070.03817.65
5.2.170.0030.03017.65
5.2.160.0040.03517.65
5.2.150.0060.03017.65
5.2.140.0070.02717.65
5.2.130.0070.02817.65
5.2.120.0070.02717.65
5.2.110.0000.03617.65
5.2.100.0030.03517.65
5.2.90.0070.03017.65
5.2.80.0060.02817.65
5.2.70.0100.02417.65
5.2.60.0000.04317.65
5.2.50.0090.02817.65
5.2.40.0040.02917.65
5.2.30.0030.03117.65
5.2.20.0080.02617.65
5.2.10.0030.03717.65
5.2.00.0000.03617.65
5.1.60.0000.02917.65
5.1.50.0140.01417.65
5.1.40.0030.02417.65
5.1.30.0060.03017.65
5.1.20.0070.03017.65
5.1.10.0060.02217.65
5.1.00.0030.02617.65
5.0.50.0030.02017.65
5.0.40.0000.02317.65
5.0.30.0030.03417.65
5.0.20.0000.02617.65
5.0.10.0040.02117.65
5.0.00.0070.02617.65
4.4.90.0070.01417.65
4.4.80.0000.02417.65
4.4.70.0030.01617.65
4.4.60.0000.02017.65
4.4.50.0060.01217.65
4.4.40.0110.03517.65
4.4.30.0090.01917.65
4.4.20.0090.01217.65
4.4.10.0000.01717.65
4.4.00.0030.03217.65
4.3.110.0000.01817.65
4.3.100.0040.01417.65
4.3.90.0000.01817.65
4.3.80.0000.02817.65
4.3.70.0030.02517.65
4.3.60.0000.01917.65
4.3.50.0000.01917.65
4.3.40.0000.02617.65
4.3.30.0030.01617.65
4.3.20.0070.01317.65
4.3.10.0110.00717.65
4.3.00.0030.03317.65