3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new stdClass(); $array = array('test'=>'test_prop'); foreach ($array as $name => $prop){ $test->$array[$name] = 'SET!'; } print_r($test);

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.3.60.0070.01116.75
8.3.50.0110.01021.15
8.3.40.0110.00418.67
8.3.30.0070.00718.72
8.3.20.0040.00420.35
8.3.10.0040.00421.81
8.3.00.0050.00323.66
8.2.180.0110.01116.75
8.2.170.0110.00422.96
8.2.160.0130.00320.35
8.2.150.0030.00624.18
8.2.140.0050.00224.66
8.2.130.0060.00319.83
8.2.120.0050.00326.35
8.2.110.0060.00320.39
8.2.100.0120.00017.91
8.2.90.0030.00519.20
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0060.00318.05
8.2.50.0080.00018.07
8.2.40.0080.00320.35
8.2.30.0040.00419.55
8.2.20.0040.00417.73
8.2.10.0040.00418.12
8.2.00.0040.00417.98
8.1.280.0090.00625.92
8.1.270.0050.00320.33
8.1.260.0030.00528.09
8.1.250.0080.00028.09
8.1.240.0000.00922.14
8.1.230.0040.00817.64
8.1.220.0030.00517.74
8.1.210.0090.00018.77
8.1.200.0080.00317.35
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0080.00018.66
8.1.160.0040.00420.63
8.1.150.0080.00018.89
8.1.140.0040.00419.50
8.1.130.0000.00717.71
8.1.120.0000.00717.48
8.1.110.0000.00717.42
8.1.100.0040.00417.46
8.1.90.0000.00717.34
8.1.80.0040.00417.44
8.1.70.0030.00317.49
8.1.60.0030.00617.56
8.1.50.0030.00617.49
8.1.40.0040.00417.42
8.1.30.0050.00317.50
8.1.20.0000.00817.50
8.1.10.0000.00817.57
8.1.00.0000.00717.32
8.0.300.0050.00318.77
8.0.290.0050.00316.75
8.0.280.0040.00418.40
8.0.270.0030.00617.29
8.0.260.0060.00017.27
8.0.250.0030.00317.04
8.0.240.0000.00717.02
8.0.230.0070.00016.96
8.0.220.0000.00816.96
8.0.210.0070.00016.95
8.0.200.0030.00317.00
8.0.190.0030.00516.90
8.0.180.0110.00016.86
8.0.170.0030.00616.96
8.0.160.0070.00016.97
8.0.150.0040.00416.89
8.0.140.0000.00716.92
8.0.130.0030.00313.32
8.0.120.0000.00916.76
8.0.110.0000.00716.94
8.0.100.0000.00817.00
8.0.90.0040.00416.95
8.0.80.0000.02216.93
8.0.70.0020.00516.85
8.0.60.0040.00416.90
8.0.50.0000.00716.84
8.0.30.0080.00917.03
8.0.20.0080.01017.40
8.0.10.0040.00417.18
8.0.00.0100.01116.79
7.4.330.0050.00016.81
7.4.320.0000.00716.52
7.4.300.0040.00416.53
7.4.290.0000.00716.64
7.4.280.0030.00616.48
7.4.270.0070.00016.60
7.4.260.0040.00416.58
7.4.250.0000.00716.47
7.4.240.0020.00516.44
7.4.230.0030.00316.33
7.4.220.0130.01016.57
7.4.210.0120.00816.44
7.4.200.0000.00716.57
7.4.160.0100.00616.50
7.4.150.0100.01317.40
7.4.140.0070.01417.86
7.4.130.0110.00916.51
7.4.120.0080.00816.53
7.4.110.0080.00816.46
7.4.100.0150.00716.48
7.4.90.0070.01116.43
7.4.80.0130.01319.39
7.4.70.0130.00316.66
7.4.60.0150.00416.43
7.4.50.0030.01016.65
7.4.40.0090.01316.54
7.4.30.0070.01416.55
7.4.00.0020.01514.97
7.3.330.0000.00513.28
7.3.320.0030.00313.14
7.3.310.0030.00316.15
7.3.300.0040.00316.41
7.3.290.0100.00616.39
7.3.280.0120.01016.34
7.3.270.0110.00617.40
7.3.260.0120.00316.47
7.3.250.0140.00416.48
7.3.240.0080.01216.38
7.3.230.0030.01316.39
7.3.210.0120.00916.56
7.3.200.0090.00919.39
7.3.190.0200.00016.40
7.3.180.0090.01216.37
7.3.170.0060.00916.42
7.3.160.0090.00616.35
7.3.120.0030.01414.84
7.3.110.0090.00914.82
7.3.100.0110.00314.83
7.3.90.0060.00814.98
7.3.80.0000.01214.57
7.3.70.0060.00614.96
7.3.60.0060.00614.81
7.3.50.0150.00014.96
7.3.40.0070.01014.94
7.3.30.0000.01314.70
7.3.20.0090.00616.56
7.3.10.0040.00416.66
7.3.00.0110.00416.32
7.2.330.0060.01816.40
7.2.320.0100.01016.72
7.2.310.0060.01116.66
7.2.300.0060.01616.70
7.2.290.0120.00516.54
7.2.250.0030.01315.27
7.2.240.0070.01415.02
7.2.230.0150.00415.16
7.2.220.0040.01014.93
7.2.210.0060.00615.22
7.2.200.0060.00615.09
7.2.190.0000.01314.95
7.2.180.0090.00914.94
7.2.170.0030.01015.14
7.2.60.0070.00717.09
7.2.00.0070.00719.65
7.1.330.0000.01215.94
7.1.320.0040.00715.48
7.1.310.0070.00315.77
7.1.300.0030.01415.63
7.1.290.0090.00615.84
7.1.280.0100.00715.81
7.1.270.0000.01415.73
7.1.260.0070.00715.59
7.1.200.0060.00615.70
7.1.100.0000.01718.01
7.1.70.0040.00416.83
7.1.60.0090.01319.27
7.1.50.0100.01016.78
7.1.00.0030.07322.54
7.0.200.0000.00716.55
7.0.60.0130.08021.63
7.0.50.0000.07317.84
7.0.40.0070.04720.40
7.0.30.0200.04320.02
7.0.20.0300.07020.04
7.0.10.0270.05320.21
7.0.00.0070.04020.20
5.6.280.0030.06021.09
5.6.210.0130.06720.53
5.6.200.0000.06018.22
5.6.190.0100.04720.27
5.6.180.0300.04320.67
5.6.170.0200.07020.48
5.6.160.0030.09020.49
5.6.150.0000.05018.12
5.6.140.0030.04018.09
5.6.130.0070.07318.17
5.6.120.0100.07321.09
5.6.110.0030.04721.11
5.6.100.0000.04320.97
5.6.90.0100.08020.96
5.6.80.0130.07720.53
5.5.350.0030.05320.43
5.5.340.0100.08017.89
5.5.330.0070.04020.07
5.5.320.0630.04720.13
5.5.310.0200.04320.41
5.5.300.0100.07718.01
5.5.290.0170.06718.02
5.5.280.0130.07020.76
5.5.270.0070.05720.84
5.5.260.0000.06720.79
5.5.250.0100.06720.54
5.5.240.0200.05320.36

preferences:
45.56 ms | 401 KiB | 5 Q