3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'foo'; $bar = new stdClass; $bar->$foo = array(10,20,30); var_dump($bar->$foo); $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.0120.00316.50
8.3.50.0040.01116.63
8.3.40.0060.01218.58
8.3.30.0160.00018.76
8.3.20.0070.01119.97
8.3.10.0080.00023.53
8.3.00.0000.00723.52
8.2.180.0180.00318.29
8.2.170.0110.00422.96
8.2.160.0130.00020.52
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0080.00019.89
8.2.120.0070.00026.35
8.2.110.0060.00320.96
8.2.100.0120.00017.91
8.2.90.0040.00419.16
8.2.80.0000.01017.97
8.2.70.0000.00817.75
8.2.60.0000.00817.93
8.2.50.0030.00518.10
8.2.40.0050.00322.30
8.2.30.0000.00719.56
8.2.20.0030.00617.62
8.2.10.0040.00418.20
8.2.00.0020.00518.18
8.1.280.0090.00625.92
8.1.270.0040.01523.96
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0030.00623.83
8.1.230.0000.01119.61
8.1.220.0090.00017.74
8.1.210.0080.00018.77
8.1.200.0030.00617.34
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0080.00018.64
8.1.160.0040.00420.80
8.1.150.0000.00719.00
8.1.140.0040.00419.58
8.1.130.0040.00417.62
8.1.120.0040.00417.44
8.1.110.0000.00917.38
8.1.100.0040.00417.41
8.1.90.0060.00317.52
8.1.80.0000.00717.52
8.1.70.0040.00417.43
8.1.60.0050.00317.60
8.1.50.0050.00317.54
8.1.40.0030.00617.57
8.1.30.0000.00817.65
8.1.20.0050.00317.63
8.1.10.0040.00417.42
8.1.00.0000.00917.47
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0050.00318.46
8.0.270.0030.00617.30
8.0.260.0000.00717.16
8.0.250.0000.00716.96
8.0.240.0000.00816.88
8.0.230.0000.00716.83
8.0.220.0030.00516.82
8.0.210.0030.00316.82
8.0.200.0000.00616.91
8.0.190.0000.00816.94
8.0.180.0080.00416.88
8.0.170.0040.00416.90
8.0.160.0000.00716.83
8.0.150.0090.00016.87
8.0.140.0030.00616.74
8.0.130.0000.00613.38
8.0.120.0050.00316.85
8.0.110.0000.00816.79
8.0.100.0070.00017.00
8.0.90.0040.00416.87
8.0.80.0060.00916.90
8.0.70.0030.00516.96
8.0.60.0000.00716.96
8.0.50.0040.00416.69
8.0.30.0080.01217.09
8.0.20.0090.01017.40
8.0.10.0070.00017.00
8.0.00.0080.01616.76
7.4.330.0060.00016.89
7.4.320.0000.00716.45
7.4.300.0040.00416.45
7.4.290.0000.00816.47
7.4.280.0040.00416.48
7.4.270.0000.00716.59
7.4.260.0030.00316.47
7.4.250.0040.00416.30
7.4.240.0020.00516.41
7.4.230.0070.00016.64
7.4.220.0140.00416.36
7.4.210.0060.00916.46
7.4.200.0000.00716.47
7.4.160.0060.00916.57
7.4.150.0060.01117.40
7.4.140.0140.00717.86
7.4.130.0090.00916.43
7.4.120.0060.01116.40
7.4.110.0150.00316.62
7.4.100.0000.01716.50
7.4.90.0120.00616.30
7.4.80.0120.01119.39
7.4.70.0130.00316.66
7.4.60.0030.01316.52
7.4.50.0140.00016.55
7.4.40.0130.00316.23
7.4.30.0120.00616.51
7.4.00.0070.01014.94
7.3.330.0000.00613.14
7.3.320.0000.00513.19
7.3.310.0040.00416.12
7.3.300.0000.00616.31
7.3.290.0000.00716.16
7.3.280.0080.00816.28
7.3.270.0090.00917.40
7.3.260.0030.01516.37
7.3.240.0070.01216.59
7.3.230.0030.01316.39
7.3.210.0120.00616.54
7.3.200.0100.00719.39
7.3.190.0090.00916.39
7.3.180.0060.00916.34
7.3.170.0100.00716.38
7.3.160.0100.00616.39
7.3.10.0070.00716.73
7.3.00.0060.00616.50
7.2.330.0060.01216.55
7.2.320.0090.00916.46
7.2.310.0080.00816.74
7.2.300.0060.01116.75
7.2.290.0080.01316.36
7.2.130.0030.00916.70
7.2.120.0110.00316.69
7.2.110.0000.01616.98
7.2.100.0000.01416.77
7.2.90.0070.01016.71
7.2.80.0080.00016.95
7.2.70.0040.00416.93
7.2.60.0110.00816.47
7.2.50.0090.00416.77
7.2.40.0080.00316.82
7.2.30.0100.00316.97
7.2.20.0000.01416.50
7.2.10.0070.00316.89
7.2.00.0050.01018.11
7.1.250.0080.00415.82
7.1.200.0070.00715.78
7.1.100.0120.00317.98
7.1.70.0030.00917.13
7.1.60.0030.02019.30
7.1.50.0030.01716.64
7.1.00.0070.07322.45
7.0.200.0060.00316.67
7.0.60.0170.08021.66
7.0.50.0070.06017.88
7.0.40.0030.08719.98
7.0.30.0200.08720.02
7.0.20.0270.07720.01
7.0.10.0000.04720.24
7.0.00.0170.08020.27
5.6.280.0030.03020.78
5.6.210.0070.06020.66
5.6.200.0070.05718.08
5.6.190.0000.09020.61
5.6.180.0400.05720.61
5.6.170.0370.07320.48
5.6.160.0230.06720.37
5.6.150.0130.07718.18
5.6.140.0070.06018.21
5.6.130.0070.05718.20
5.6.120.0000.08721.02
5.6.110.0200.07321.13
5.6.100.0170.07721.03
5.6.90.0000.04320.96
5.6.80.0200.05720.28
5.5.350.0100.04020.41
5.5.340.0030.04717.92
5.5.330.0100.07320.14
5.5.320.0630.07020.27
5.5.310.0100.05020.21
5.5.300.0030.08717.88
5.5.290.0100.07717.93
5.5.280.0000.05320.80
5.5.270.0100.08720.95
5.5.260.0170.07720.88
5.5.250.0200.07020.49
5.5.240.0170.07720.34

preferences:
41.84 ms | 400 KiB | 5 Q