3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { static function foo() { $t = "this"; $$t = 5; extract(array("this" => "foo", "that" => "bar")); var_dump($this, $that); } } (new X)->foo(); X::foo();

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.00616.63
8.3.50.0140.00722.82
8.3.40.0000.01518.67
8.3.30.0100.00319.13
8.3.20.0080.00020.26
8.3.10.0050.00323.61
8.3.00.0060.00319.15
8.2.180.0090.00616.63
8.2.170.0120.00922.96
8.2.160.0110.00320.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.02
8.2.110.0030.00619.37
8.2.100.0070.00317.91
8.2.90.0070.00019.08
8.2.80.0030.00517.97
8.2.70.0000.00917.48
8.2.60.0040.00417.80
8.2.50.0090.00018.07
8.2.40.0040.00418.22
8.2.30.0070.00018.12
8.2.20.0050.00317.63
8.2.10.0000.00718.00
8.2.00.0040.00417.73
8.1.280.0150.00325.92
8.1.270.0030.00623.96
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0080.00022.19
8.1.230.0040.00819.01
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.48
8.1.190.0080.00017.35
8.1.180.0040.00418.10
8.1.170.0000.00818.50
8.1.160.0070.00021.89
8.1.150.0040.00418.80
8.1.140.0040.00417.39
8.1.130.0030.00317.70
8.1.120.0000.00717.47
8.1.110.0000.00817.45
8.1.100.0000.00717.46
8.1.90.0000.00817.33
8.1.80.0000.00717.44
8.1.70.0070.00017.34
8.1.60.0040.00417.59
8.1.50.0020.00517.53
8.1.40.0000.00817.52
8.1.30.0000.00817.56
8.1.20.0040.00417.64
8.1.10.0040.00417.53
8.1.00.0040.00417.48
8.0.300.0000.00720.14
8.0.290.0070.00016.75
8.0.280.0040.00418.32
8.0.270.0040.00417.24
8.0.260.0070.00017.32
8.0.250.0070.00017.03
8.0.240.0000.00716.95
8.0.230.0000.00717.00
8.0.220.0070.00016.83
8.0.210.0000.00716.85
8.0.200.0060.00017.02
8.0.190.0070.00017.04
8.0.180.0070.00016.89
8.0.170.0000.00816.96
8.0.160.0050.00216.99
8.0.150.0080.00016.79
8.0.140.0030.00616.82
8.0.130.0000.00813.35
8.0.120.0000.00816.91
8.0.110.0050.00216.84
8.0.100.0040.00416.91
8.0.90.0070.00016.96
8.0.80.0150.00316.90
8.0.70.0020.00516.89
8.0.60.0000.00716.80
8.0.50.0000.00716.80
8.0.30.0100.01217.12
8.0.20.0100.00817.40
8.0.10.0040.00416.98
8.0.00.0090.00817.06
7.4.330.0000.00615.05
7.4.320.0000.00616.49
7.4.300.0000.00716.65
7.4.290.0070.00016.53
7.4.280.0040.00416.48
7.4.270.0000.00816.53
7.4.260.0000.00716.61
7.4.250.0000.00716.55
7.4.240.0030.00516.56
7.4.230.0070.00016.70
7.4.220.0070.01016.63
7.4.210.0090.00916.45
7.4.200.0030.00316.72
7.4.160.0090.01216.42
7.4.150.0180.00617.40
7.4.140.0090.00917.86
7.4.130.0120.00616.49
7.4.120.0120.00416.61
7.4.110.0100.01316.43
7.4.100.0090.00916.68
7.4.90.0090.00916.53
7.4.80.0100.00719.39
7.4.70.0110.00516.73
7.4.60.0120.01216.58
7.4.50.0050.00016.56
7.4.40.0060.01316.61
7.4.30.0090.00616.71
7.4.00.0030.00914.95
7.3.330.0050.00213.29
7.3.320.0030.00313.49
7.3.310.0070.00016.28
7.3.300.0000.00716.30
7.3.290.0130.00716.44
7.3.280.0070.01116.37
7.3.270.0170.00717.40
7.3.260.0060.01216.36
7.3.250.0130.00716.38
7.3.240.0060.01216.38
7.3.230.0070.01016.59
7.3.210.0060.01016.48
7.3.200.0090.01119.39
7.3.190.0000.01816.56
7.3.180.0060.00916.48
7.3.170.0040.01216.37
7.3.160.0060.01016.40
7.3.10.0070.00716.61
7.3.00.0040.00816.54
7.2.330.0090.00916.63
7.2.320.0070.01516.38
7.2.310.0100.00616.70
7.2.300.0090.00616.75
7.2.290.0140.00416.67
7.2.130.0060.00316.90
7.2.120.0080.00416.74
7.2.110.0080.00316.93
7.2.100.0060.00916.95
7.2.90.0030.01016.81
7.2.80.0100.00016.70
7.2.70.0060.00917.00
7.2.60.0100.00516.87
7.2.50.0060.00616.96
7.2.40.0060.00616.93
7.2.30.0060.00916.97
7.2.20.0080.00416.98
7.2.10.0060.00916.81
7.2.00.0060.01018.10
7.1.250.0070.01015.65
7.1.200.0030.00615.70
7.1.100.0040.01118.05
7.1.70.0150.00016.99
7.1.60.0090.01619.40
7.1.50.0070.01816.90
7.1.00.0070.07322.46
7.0.200.0100.00016.61
7.0.140.0070.07022.07
7.0.60.0200.07719.94
7.0.50.0070.08317.89
7.0.40.0070.07320.21
7.0.30.0330.05020.17
7.0.20.0300.08320.09
7.0.10.0070.05320.23
7.0.00.0030.05720.08
5.6.280.0070.07021.00
5.6.210.0170.05720.45
5.6.200.0030.08318.19
5.6.190.0030.04320.62
5.6.180.0330.04020.50
5.6.170.0330.07320.57
5.6.160.0000.05020.57
5.6.150.0030.05018.16
5.6.140.0030.08318.28
5.6.130.0100.08318.26
5.6.120.0030.04020.83
5.6.110.0070.08321.05
5.6.100.0030.07020.98
5.6.90.0170.08021.08
5.6.80.0000.08720.52
5.5.350.0200.07720.44
5.5.340.0030.05017.95
5.5.330.0000.04320.43
5.5.320.0270.08020.52
5.5.310.0230.07720.36
5.5.300.0170.04717.99
5.5.290.0070.04317.96
5.5.280.0030.05320.76
5.5.270.0070.06020.75
5.5.260.0070.06320.87
5.5.250.0030.05020.50
5.5.240.0230.05720.35
5.4.450.0400.03319.54
5.4.440.0370.03719.55
5.4.430.0330.04019.19
5.4.420.0530.03719.46
5.4.410.0330.03719.19
5.4.400.0430.04018.95
5.4.390.0370.04019.09
5.4.380.0400.03019.24
5.4.370.0270.04318.84
5.4.360.0430.03019.20
5.4.350.0370.05019.22
5.4.340.0330.03719.20
5.4.320.0370.04019.23
5.4.310.0430.04719.06
5.4.300.0370.03319.19
5.4.290.0330.03719.20
5.4.280.0400.03719.20
5.4.270.0300.04018.95
5.4.260.0370.03318.84
5.4.250.0370.03319.07
5.4.240.0370.03318.86
5.4.230.0400.03019.07
5.4.220.0300.04319.05
5.4.210.0300.04719.04
5.4.200.0370.03318.98
5.4.190.0370.03318.94
5.4.180.0370.03718.86
5.4.170.0330.03718.82
5.4.160.0330.04719.10
5.4.150.0370.03719.10
5.4.140.0370.03316.38
5.4.130.0300.05016.39
5.4.120.0370.04016.51
5.4.110.0430.04016.43
5.4.100.0330.03316.56
5.4.90.0400.04016.56
5.4.80.0430.03016.44
5.4.70.0430.06316.39
5.4.60.0330.04316.42
5.4.50.0500.05716.48
5.4.40.0530.05016.43
5.4.30.0400.04016.39
5.4.20.0530.05716.25
5.4.10.0370.04316.25
5.4.00.0470.03715.78
5.3.290.0370.04714.58
5.3.280.0330.04014.60
5.3.270.0370.07014.52
5.3.260.0470.03714.65
5.3.250.0400.03314.77
5.3.240.0400.04714.61
5.3.230.0530.05314.52
5.3.220.0400.06014.49
5.3.210.0370.03714.65
5.3.200.0430.06014.48
5.3.190.0400.05014.57
5.3.180.0330.03714.71
5.3.170.0470.06714.47
5.3.160.0370.06314.79
5.3.150.0400.07014.68
5.3.140.0500.05714.46
5.3.130.0430.03014.70
5.3.120.0430.03714.77
5.3.110.0430.04314.54
5.3.100.0400.04014.27
5.3.90.0470.06014.14
5.3.80.0430.06713.94
5.3.70.0370.04313.95
5.3.60.0500.05714.02
5.3.50.0370.03713.85
5.3.40.0370.03713.93
5.3.30.0400.04014.00
5.3.20.0430.05713.59
5.3.10.0370.06013.66
5.3.00.0470.03713.55
5.2.170.0300.02712.42
5.2.160.0330.02712.42
5.2.150.0370.05312.42
5.2.140.0230.03312.42
5.2.130.0330.04712.42
5.2.120.0300.03312.42
5.2.110.0230.03312.42
5.2.100.0330.05012.42
5.2.90.0330.03312.42
5.2.80.0300.04712.42
5.2.70.0330.05312.42
5.2.60.0370.05012.42
5.2.50.0430.04712.42
5.2.40.0230.04312.42
5.2.30.0330.02712.42
5.2.20.0270.03712.42
5.2.10.0300.03012.42
5.2.00.0300.02712.42
5.1.60.0370.02712.42
5.1.50.0400.04312.42
5.1.40.0300.05012.42
5.1.30.0370.05012.42
5.1.20.0330.03712.42
5.1.10.0500.03712.42
5.1.00.0300.03312.42
5.0.50.0200.03712.42
5.0.40.0170.03312.42
5.0.30.0130.03312.42
5.0.20.0130.02712.42
5.0.10.0170.04312.42
5.0.00.0170.03712.42
4.4.90.0170.02712.42
4.4.80.0130.01712.42
4.4.70.0130.02312.42
4.4.60.0230.01312.42
4.4.50.0230.02712.42
4.4.40.0170.04712.42
4.4.30.0170.01712.42
4.4.20.0230.02712.42
4.4.10.0200.03012.42
4.4.00.0200.02012.42
4.3.110.0170.03712.42
4.3.100.0170.03012.42
4.3.90.0200.01712.42
4.3.80.0170.04312.42
4.3.70.0200.03012.42
4.3.60.0200.03012.42
4.3.50.0170.01712.42
4.3.40.0200.04012.42
4.3.30.0100.03312.42
4.3.20.0100.01712.42
4.3.10.0130.03012.42
4.3.00.0070.01712.42

preferences:
36.03 ms | 401 KiB | 5 Q