3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar() { $name = 'this'; $$name = 'herpderp'; var_dump($$name); var_dump($this); } } $d = new Foo; $d->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.0150.00618.68
8.3.50.0100.00922.01
8.3.40.0070.00718.82
8.3.30.0070.00719.04
8.3.20.0070.00020.16
8.3.10.0040.00421.96
8.3.00.0040.00422.46
8.2.180.0110.00716.63
8.2.170.0140.00722.96
8.2.160.0100.00320.93
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00417.88
8.2.110.0040.00721.18
8.2.100.0080.00417.72
8.2.90.0030.00619.18
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0060.00317.93
8.2.50.0080.00018.10
8.2.40.0000.00818.34
8.2.30.0060.00317.93
8.2.20.0000.00717.58
8.2.10.0050.00217.80
8.2.00.0080.00017.79
8.1.280.0030.01225.92
8.1.270.0030.00524.66
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0000.00922.75
8.1.230.0040.00717.70
8.1.220.0000.00817.78
8.1.210.0060.00318.77
8.1.200.0040.00417.47
8.1.190.0030.00517.35
8.1.180.0000.00818.10
8.1.170.0040.00418.37
8.1.160.0060.00321.91
8.1.150.0040.00418.63
8.1.140.0040.00417.39
8.1.130.0030.00317.33
8.1.120.0000.00717.32
8.1.110.0000.00817.34
8.1.100.0000.00717.45
8.1.90.0000.00817.33
8.1.80.0070.00017.50
8.1.70.0030.00317.42
8.1.60.0030.00617.61
8.1.50.0000.00817.54
8.1.40.0080.00317.56
8.1.30.0000.00817.53
8.1.20.0000.00917.54
8.1.10.0000.00717.45
8.1.00.0000.00717.39
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0040.00418.37
8.0.270.0070.00017.31
8.0.260.0030.00316.87
8.0.250.0000.00616.95
8.0.240.0000.00716.99
8.0.230.0000.00717.07
8.0.220.0000.00716.96
8.0.210.0030.00316.88
8.0.200.0000.00617.02
8.0.190.0030.00617.05
8.0.180.0000.00716.79
8.0.170.0000.00716.83
8.0.160.0070.00016.94
8.0.150.0080.00016.88
8.0.140.0070.00016.86
8.0.130.0030.00313.38
8.0.120.0000.00816.89
8.0.110.0040.00416.87
8.0.100.0070.00017.01
8.0.90.0040.00416.98
8.0.80.0120.00416.85
8.0.70.0080.00016.94
8.0.60.0000.00717.06
8.0.50.0070.00016.90
8.0.30.0100.01416.96
8.0.20.0110.00717.40
8.0.10.0000.00717.00
8.0.00.0130.00716.71
7.4.330.0000.00515.00
7.4.320.0000.00616.60
7.4.300.0060.00016.48
7.4.290.0030.00316.57
7.4.280.0040.00416.61
7.4.270.0000.00716.39
7.4.260.0090.00016.48
7.4.250.0040.00416.31
7.4.240.0040.00416.46
7.4.230.0030.00316.57
7.4.220.0060.00916.64
7.4.210.0120.00616.61
7.4.200.0000.00616.40
7.4.190.0000.00716.67
7.4.160.0110.00516.60
7.4.150.0130.00417.40
7.4.140.0140.00617.86
7.4.130.0100.01016.59
7.4.120.0140.01016.53
7.4.110.0100.01016.54
7.4.100.0070.01016.43
7.4.90.0040.01816.61
7.4.80.0030.01519.39
7.4.70.0070.01116.57
7.4.60.0120.00716.61
7.4.50.0000.00916.58
7.4.40.0000.01622.77
7.4.30.0130.00316.42
7.4.00.0110.00715.08
7.3.330.0060.00013.20
7.3.320.0030.00313.43
7.3.310.0000.00716.54
7.3.300.0040.00416.43
7.3.290.0070.00716.49
7.3.280.0060.01216.41
7.3.270.0110.00617.40
7.3.260.0030.01316.46
7.3.250.0080.00916.57
7.3.240.0110.00716.63
7.3.230.0090.01316.39
7.3.210.0090.01116.55
7.3.200.0070.01319.39
7.3.190.0070.01016.62
7.3.180.0110.00716.63
7.3.170.0000.01716.64
7.3.160.0110.00516.30
7.3.120.0070.01014.88
7.2.330.0110.00816.73
7.2.320.0110.01116.86
7.2.310.0070.01016.80
7.2.300.0040.01316.43
7.2.290.0110.00516.49
7.2.60.0000.01417.05
7.2.00.0030.00919.59
7.1.200.0110.01215.61
7.1.100.0100.00318.11
7.1.70.0080.00417.25
7.1.60.0100.01319.82
7.1.50.0100.01316.88
7.1.00.0100.07022.35
7.0.200.0040.00816.43
7.0.140.0030.07322.15
7.0.100.0100.05319.93
7.0.90.0230.08019.94
7.0.80.0030.08719.96
7.0.70.0200.06019.98
7.0.60.0200.08720.08
7.0.50.0030.09320.32
7.0.40.0030.05020.00
7.0.30.0070.08020.09
7.0.20.0070.04720.11
7.0.10.0030.07020.05
7.0.00.0030.05020.08
5.6.280.0070.07020.82
5.6.250.0100.06020.61
5.6.240.0300.06020.76
5.6.230.0130.05020.63
5.6.220.0130.07320.50
5.6.210.0100.07720.77
5.6.200.0070.08321.04
5.6.190.0030.08021.10
5.6.180.0130.05720.95
5.6.170.0070.08721.17
5.6.160.0230.06321.02
5.6.150.0070.06320.96
5.6.140.0130.07721.05
5.6.130.0070.08721.14
5.6.120.0000.07720.96
5.6.110.0070.07021.01
5.6.100.0070.06721.01
5.6.90.0130.03721.15
5.6.80.0000.05320.43
5.6.70.0030.04320.34
5.6.60.0100.07020.39
5.6.50.0130.05320.34
5.6.40.0170.06720.38
5.6.30.0130.06020.32
5.6.20.0170.04020.38
5.6.10.0100.03720.32
5.6.00.0030.07020.38
5.5.380.0070.08320.43
5.5.370.0100.08020.46
5.5.360.0100.04320.45
5.5.350.0030.09020.46
5.5.340.0000.08020.89
5.5.330.0170.06020.89
5.5.320.0030.05020.89
5.5.310.0130.07720.89
5.5.300.0000.06020.92
5.5.290.0070.07020.63
5.5.280.0070.05020.77
5.5.270.0100.08320.75
5.5.260.0100.07320.87
5.5.250.0070.04720.64
5.5.240.0070.08020.11
5.5.230.0100.04720.31
5.5.220.0170.07020.15
5.5.210.0030.05320.16
5.5.200.0100.08020.23
5.5.190.0070.05020.27
5.5.180.0000.04320.23
5.5.160.0100.07320.15
5.5.150.0070.07320.18
5.5.140.0070.08020.13
5.5.130.0100.05720.17
5.5.120.0130.07020.21
5.5.110.0100.04020.27
5.5.100.0030.07720.13
5.5.90.0130.07320.16
5.5.80.0130.07720.01
5.5.70.0030.07719.97
5.5.60.0100.03319.90
5.5.50.0070.04720.16
5.5.40.0000.05020.09
5.5.30.0000.05019.93
5.5.20.0070.06719.93
5.5.10.0130.07320.12
5.5.00.0170.04019.96
5.4.450.0130.06719.28
5.4.440.0070.07019.19
5.4.430.0130.07019.35
5.4.420.0130.06319.36
5.4.410.0030.04019.10
5.4.400.0070.05319.17
5.4.390.0100.07019.21
5.4.380.0100.07319.14
5.4.370.0000.08019.18
5.4.360.0130.06719.05
5.4.350.0130.03719.20
5.4.340.0000.07718.92
5.4.320.0100.07019.14
5.4.310.0100.03718.95
5.4.300.0070.07019.13
5.4.290.0030.04718.95
5.4.280.0070.07019.12
5.4.270.0070.07719.13
5.4.260.0100.04019.18
5.4.250.0070.05719.09
5.4.240.0100.06018.95
5.4.230.0070.07019.04
5.4.220.0100.06019.04
5.4.210.0130.07319.13
5.4.200.0030.06719.18
5.4.190.0100.07319.02
5.4.180.0030.08719.03
5.4.170.0030.07718.86
5.4.160.0070.06319.02
5.4.150.0170.04719.02
5.4.140.0030.07316.30
5.4.130.0070.07316.39
5.4.120.0070.07316.45
5.4.110.0000.05016.44
5.4.100.0030.04716.47
5.4.90.0030.06316.32
5.4.80.0070.06316.40
5.4.70.0100.05316.41
5.4.60.0070.07016.40
5.4.50.0130.06316.32
5.4.40.0000.04316.32
5.4.30.0030.07016.40
5.4.20.0070.07316.30
5.4.10.0030.07716.36
5.4.00.0070.07315.86
5.3.290.0030.07314.73
5.3.280.0030.04314.57
5.3.270.0070.04314.54
5.3.260.0030.07714.71
5.3.250.0000.04714.71
5.3.240.0030.07314.62
5.3.230.0030.07314.70
5.3.220.0070.07014.68
5.3.210.0130.05314.62
5.3.200.0000.07714.51
5.3.190.0100.05314.54
5.3.180.0100.04714.49
5.3.170.0100.07314.51
5.3.160.0100.03314.61
5.3.150.0000.04014.65
5.3.140.0070.04714.58
5.3.130.0000.06714.60
5.3.120.0070.07314.56
5.3.110.0030.05714.60
5.3.100.0030.06714.07
5.3.90.0030.04013.94
5.3.80.0070.07314.08
5.3.70.0000.04314.00
5.3.60.0030.07713.91
5.3.50.0030.06714.05
5.3.40.0100.07014.05
5.3.30.0100.07313.93
5.3.20.0070.04013.74
5.3.10.0070.07013.58
5.3.00.0130.03713.73
5.2.170.0030.06311.13
5.2.160.0000.06311.01
5.2.150.0030.06311.08
5.2.140.0030.05311.16
5.2.130.0030.03011.11
5.2.120.0030.04711.02
5.2.110.0070.05711.16
5.2.100.0130.05311.03
5.2.90.0100.05311.05
5.2.80.0030.04011.20
5.2.70.0100.05011.13
5.2.60.0030.03711.19
5.2.50.0030.04011.11
5.2.40.0070.05311.02
5.2.30.0100.05711.00
5.2.20.0030.03311.05
5.2.10.0100.04710.77
5.2.00.0030.06010.82
5.1.60.0070.0439.88
5.1.50.0130.04310.00
5.1.40.0000.0539.86
5.1.30.0070.05710.36
5.1.20.0070.02310.47
5.1.10.0130.0479.95
5.1.00.0000.05710.14
5.0.50.0030.0409.01
5.0.40.0030.0239.01
5.0.30.0100.0579.01
5.0.20.0070.0439.01
5.0.10.0070.0279.01
5.0.00.0000.0379.01
4.4.90.0000.0339.01
4.4.80.0030.0339.01
4.4.70.0100.0209.01
4.4.60.0030.0139.01
4.4.50.0030.0209.01
4.4.40.0000.0509.01
4.4.30.0000.0209.01
4.4.20.0000.0339.01
4.4.10.0030.0339.01
4.4.00.0030.0309.01
4.3.110.0070.0309.01
4.3.100.0000.0209.01
4.3.90.0030.0279.01
4.3.80.0030.0539.01
4.3.70.0000.0239.01
4.3.60.0000.0209.01
4.3.50.0030.0379.01
4.3.40.0000.0309.01
4.3.30.0000.0209.01
4.3.20.0000.0379.01
4.3.10.0000.0309.01
4.3.00.0030.0279.01

preferences:
44.38 ms | 401 KiB | 5 Q