3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = 'foo'; $bar = new stdClass; $bar->$foo = array(); $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.4.120.0080.01020.39
8.4.110.0120.00818.64
8.4.100.0090.00518.70
8.4.90.0160.00420.54
8.4.80.0060.00318.77
8.4.70.0080.00718.76
8.4.60.0080.01218.99
8.4.50.0080.01020.51
8.4.40.0100.01019.51
8.4.30.0100.01017.80
8.4.20.0000.00817.87
8.4.10.0130.00317.56
8.3.250.0140.00517.01
8.3.240.0120.00916.42
8.3.230.0120.00616.51
8.3.220.0090.01018.86
8.3.210.0080.00616.69
8.3.200.0040.00516.64
8.3.190.0090.00920.80
8.3.180.0100.00818.88
8.3.170.0120.00316.82
8.3.160.0070.01117.09
8.3.150.0080.00317.32
8.3.140.0060.00320.61
8.3.130.0140.00718.29
8.3.120.0120.00618.95
8.3.110.0040.00420.94
8.3.100.0030.00624.06
8.3.90.0080.00026.77
8.3.80.0030.00716.88
8.3.70.0040.01116.58
8.3.60.0170.00316.63
8.3.50.0080.01021.98
8.3.40.0120.00618.64
8.3.30.0100.00719.26
8.3.20.0040.00420.25
8.3.10.0080.00023.28
8.3.00.0060.00319.26
8.2.290.0110.00520.42
8.2.280.0130.00618.51
8.2.270.0130.00616.46
8.2.260.0150.00316.52
8.2.250.0130.00716.57
8.2.240.0060.00319.08
8.2.230.0110.00722.58
8.2.220.0060.00337.54
8.2.210.0130.00726.77
8.2.200.0030.00616.50
8.2.190.0080.00616.63
8.2.180.0110.00717.94
8.2.170.0110.00418.81
8.2.160.0030.01022.96
8.2.150.0070.00025.66
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00422.25
8.2.110.0030.00621.05
8.2.100.0110.00017.84
8.2.90.0000.00719.30
8.2.80.0000.00817.97
8.2.70.0000.00917.50
8.2.60.0000.00818.16
8.2.50.0060.00318.07
8.2.40.0000.00919.91
8.2.30.0040.00419.96
8.2.20.0040.00417.69
8.2.10.0040.00418.11
8.2.00.0070.00317.79
8.1.330.0140.00522.11
8.1.320.0100.00916.00
8.1.310.0060.00316.29
8.1.300.0030.00519.91
8.1.290.0060.00318.88
8.1.280.0100.01025.92
8.1.270.0040.00422.19
8.1.260.0020.00526.35
8.1.250.0040.00428.09
8.1.240.0060.00622.05
8.1.230.0110.00019.05
8.1.220.0000.00817.76
8.1.210.0080.00018.77
8.1.200.0000.00817.25
8.1.190.0040.00417.25
8.1.180.0000.01118.10
8.1.170.0050.00318.64
8.1.160.0000.00822.00
8.1.150.0000.00718.70
8.1.140.0000.00917.36
8.1.130.0030.00317.77
8.1.120.0050.00217.47
8.1.110.0090.00017.38
8.1.100.0040.00417.48
8.1.90.0000.00717.48
8.1.80.0020.00517.43
8.1.70.0080.00017.45
8.1.60.0000.00717.58
8.1.50.0000.00817.53
8.1.40.0000.00817.52
8.1.30.0040.00417.54
8.1.20.0030.00617.55
8.1.10.0040.00417.47
8.1.00.0040.00417.44
8.0.300.0000.00718.92
8.0.290.0070.00017.05
8.0.280.0000.00718.36
8.0.270.0030.00317.27
8.0.260.0000.00717.17
8.0.250.0000.00716.84
8.0.240.0030.00317.02
8.0.230.0030.00316.96
8.0.220.0040.00416.91
8.0.210.0030.00316.77
8.0.200.0000.00816.83
8.0.190.0000.00716.89
8.0.180.0040.00416.84
8.0.170.0060.00316.89
8.0.160.0000.00716.89
8.0.150.0030.00616.85
8.0.140.0050.00316.85
8.0.130.0000.00513.25
8.0.120.0030.00516.85
8.0.110.0030.00516.85
8.0.100.0060.00316.79
8.0.90.0030.00316.95
8.0.80.0080.01216.87
8.0.70.0070.00016.80
8.0.60.0000.00816.84
8.0.50.0030.00316.73
8.0.30.0130.00417.18
8.0.20.0120.00717.40
8.0.10.0040.00417.03
8.0.00.0100.00916.62
7.4.330.0020.00215.09
7.4.320.0000.00616.40
7.4.300.0040.00416.49
7.4.290.0030.00316.38
7.4.280.0080.00016.43
7.4.270.0020.00516.45
7.4.260.0030.00316.47
7.4.250.0000.00716.48
7.4.240.0030.00316.49
7.4.230.0030.00316.33
7.4.220.0100.00716.49
7.4.210.0040.00916.52
7.4.200.0030.00316.61
7.4.190.0030.00316.30
7.4.160.0110.00616.32
7.4.150.0060.01117.40
7.4.140.0120.00917.86
7.4.130.0050.01116.49
7.4.120.0070.01016.47
7.4.110.0150.00616.49
7.4.100.0130.01016.53
7.4.90.0030.01416.58
7.4.80.0110.01119.39
7.4.70.0040.01116.32
7.4.60.0100.00716.47
7.4.50.0000.00816.50
7.4.40.0120.00416.31
7.4.30.0100.00716.50
7.4.00.0030.00715.14
7.3.330.0000.00613.09
7.3.320.0020.00212.98
7.3.310.0030.00316.17
7.3.300.0000.00616.19
7.3.290.0090.00616.20
7.3.280.0090.01316.25
7.3.270.0130.00317.40
7.3.260.0200.00316.13
7.3.250.0080.01116.39
7.3.240.0080.01416.54
7.3.230.0100.01016.50
7.3.210.0060.01216.63
7.3.200.0150.00619.39
7.3.190.0110.00816.70
7.3.180.0060.01116.25
7.3.170.0080.00816.67
7.3.160.0040.01216.46
7.3.120.0110.00314.57
7.2.330.0120.01216.65
7.2.320.0060.01216.51
7.2.310.0040.01316.56
7.2.300.0080.00816.64
7.2.290.0110.00616.64
7.2.60.0100.00317.09
7.2.00.0030.01319.42
7.1.200.0000.01015.67
7.1.100.0040.00818.22
7.1.70.0000.00717.27
7.1.60.0160.00919.46
7.1.50.0060.00916.98
7.1.00.0000.08022.41
7.0.200.0140.00714.96
7.0.140.0070.07022.21
7.0.100.0200.08020.02
7.0.90.0030.06719.86
7.0.80.0070.05020.04
7.0.70.0130.05319.97
7.0.60.0070.04019.91
5.6.280.0070.06721.08
5.6.250.0130.06720.81
5.6.240.0100.07020.61
5.6.230.0100.05020.65
5.6.220.0030.08720.66
5.6.210.0070.04720.62
5.5.380.0100.04720.32
5.5.370.0030.08020.39
5.5.360.0030.07320.48
5.5.350.0100.08720.45

preferences:
115.19 ms | 403 KiB | 5 Q