3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'foo'; $bar = new stdClass; $bar->$foo = array(); var_dump($bar); $bar->$foo[0] = 42; var_dump($bar);

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.0110.00718.43
8.3.50.0110.00721.16
8.3.40.0120.00318.92
8.3.30.0030.01018.84
8.3.20.0040.00420.36
8.3.10.0030.00623.54
8.3.00.0040.00423.36
8.2.180.0180.00416.38
8.2.170.0110.00422.96
8.2.160.0100.00320.47
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00319.95
8.2.120.0040.00426.35
8.2.110.0000.00921.03
8.2.100.0080.00318.05
8.2.90.0040.00419.21
8.2.80.0040.00418.03
8.2.70.0060.00317.63
8.2.60.0000.00818.04
8.2.50.0050.00318.07
8.2.40.0030.00522.30
8.2.30.0080.00019.55
8.2.20.0040.00417.70
8.2.10.0040.00418.00
8.2.00.0020.00518.13
8.1.280.0150.00625.92
8.1.270.0060.00323.83
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0030.00622.27
8.1.230.0070.00419.09
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0040.00417.35
8.1.180.0050.00518.10
8.1.170.0000.00818.34
8.1.160.0040.00420.77
8.1.150.0000.00818.93
8.1.140.0040.00419.53
8.1.130.0040.00417.70
8.1.120.0000.00717.54
8.1.110.0060.00317.46
8.1.100.0000.00717.41
8.1.90.0040.00317.54
8.1.80.0000.00717.50
8.1.70.0030.00317.46
8.1.60.0040.00417.61
8.1.50.0030.00617.57
8.1.40.0080.00017.41
8.1.30.0060.00317.73
8.1.20.0040.00417.68
8.1.10.0000.00717.48
8.1.00.0050.00317.34
8.0.300.0040.00418.77
8.0.290.0030.00716.75
8.0.280.0000.00718.37
8.0.270.0000.00717.14
8.0.260.0030.00317.13
8.0.250.0070.00016.88
8.0.240.0000.00616.85
8.0.230.0040.00316.92
8.0.220.0070.00016.89
8.0.210.0040.00416.89
8.0.200.0000.00616.98
8.0.190.0070.00016.96
8.0.180.0030.00616.89
8.0.170.0000.00816.82
8.0.160.0050.00216.79
8.0.150.0030.00616.82
8.0.140.0000.00816.80
8.0.130.0050.00013.29
8.0.120.0080.00016.75
8.0.110.0040.00416.80
8.0.100.0040.00416.91
8.0.90.0000.00716.88
8.0.80.0120.00916.78
8.0.70.0040.00416.76
8.0.60.0030.00616.95
8.0.50.0000.00716.91
8.0.30.0090.01017.07
8.0.20.0080.01117.40
8.0.10.0050.00316.95
8.0.00.0080.01416.81
7.4.330.0000.00516.82
7.4.320.0000.00616.55
7.4.300.0040.00416.43
7.4.290.0070.00016.55
7.4.280.0060.00316.41
7.4.270.0030.00316.38
7.4.260.0050.00216.43
7.4.250.0070.00016.31
7.4.240.0040.00316.51
7.4.230.0000.00716.37
7.4.220.0000.01816.43
7.4.210.0110.00316.51
7.4.200.0000.00716.47
7.4.160.0110.00816.38
7.4.150.0170.00017.40
7.4.140.0150.00617.86
7.4.130.0090.01016.43
7.4.120.0080.00916.37
7.4.110.0060.01216.35
7.4.100.0060.01016.33
7.4.90.0100.00716.62
7.4.80.0100.00719.39
7.4.70.0110.00616.57
7.4.60.0100.00616.55
7.4.50.0070.00716.20
7.4.40.0070.01016.32
7.4.30.0130.00516.56
7.4.00.0030.01014.95
7.3.330.0060.00013.11
7.3.320.0020.00213.07
7.3.310.0030.00316.14
7.3.300.0050.00316.25
7.3.290.0070.00016.28
7.3.280.0100.00716.29
7.3.270.0110.00717.40
7.3.260.0140.00316.28
7.3.250.0110.00916.34
7.3.240.0080.00816.25
7.3.230.0100.00716.39
7.3.210.0130.00416.61
7.3.200.0060.01319.39
7.3.190.0140.00716.64
7.3.180.0090.00616.38
7.3.170.0060.01216.27
7.3.160.0130.00316.38
7.2.330.0030.01316.61
7.2.320.0040.01516.43
7.2.310.0000.01716.63
7.2.300.0060.01216.50
7.2.290.0070.01116.64
7.2.60.0040.01316.21
7.2.00.0100.00319.23
7.1.200.0070.00415.77
7.1.100.0100.01018.17
7.1.70.0060.00317.20
7.1.60.0120.00619.30
7.1.50.0110.00016.59
7.1.00.0100.07022.45
7.0.200.0070.00316.87
7.0.60.0130.03321.82
7.0.50.0170.05717.89
7.0.40.0100.08020.19
7.0.30.0170.05320.00
7.0.20.0300.04720.00
7.0.10.0000.04720.09
7.0.00.0030.05319.95
5.6.280.0030.03021.09
5.6.210.0030.08320.52
5.6.200.0130.07318.19
5.6.190.0070.06020.27
5.6.180.0600.06320.27
5.6.170.0270.05020.41
5.6.160.0170.06320.46
5.6.150.0100.07718.21
5.6.140.0100.07018.14
5.6.130.0070.07318.11
5.6.120.0070.07321.10
5.6.110.0070.04321.01
5.6.100.0070.06721.13
5.6.90.0070.04721.05
5.6.80.0030.07320.53
5.5.350.0170.07720.43
5.5.340.0030.04017.96
5.5.330.0030.05720.29
5.5.320.0470.07020.51
5.5.310.0300.07320.14
5.5.300.0070.08017.92
5.5.290.0170.03717.98
5.5.280.0100.08320.68
5.5.270.0070.08720.96
5.5.260.0170.07320.88
5.5.250.0100.08320.60
5.5.240.0170.07720.15

preferences:
37.13 ms | 401 KiB | 5 Q