3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function thing($foo); } class Bar implements Foo { public function thing(&$foo) { $foo++; } } $bar = new Bar(); $a = 1; $bar->thing($a); var_dump($a);

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.00918.65
8.3.50.0080.00721.21
8.3.40.0070.00718.67
8.3.30.0100.01018.60
8.3.20.0000.00818.78
8.3.10.0080.00020.36
8.3.00.0050.00319.13
8.2.180.0070.01116.75
8.2.170.0130.00722.96
8.2.160.0100.00322.16
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00019.77
8.2.110.0070.00322.13
8.2.100.0040.00717.78
8.2.90.0050.00319.21
8.2.80.0040.00417.97
8.2.70.0000.00917.38
8.2.60.0060.00317.68
8.2.50.0030.00518.07
8.2.40.0040.00417.97
8.2.30.0000.00819.80
8.2.20.0070.00017.46
8.2.10.0040.00417.54
8.2.00.0040.00417.67
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0100.00021.18
8.1.230.0040.00717.42
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0090.00017.23
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.84
8.1.160.0050.00218.80
8.1.150.0000.00718.54
8.1.140.0000.00817.38
8.1.130.0080.00017.75
8.1.120.0000.00717.35
8.1.110.0000.00717.28
8.1.100.0040.00417.39
8.1.90.0000.00717.30
8.1.80.0030.00517.29
8.1.70.0080.00017.36
8.1.60.0040.00417.44
8.1.50.0030.00517.38
8.1.40.0000.00717.43
8.1.30.0000.00717.59
8.1.20.0050.00317.52
8.1.10.0040.00417.42
8.1.00.0040.00417.27
8.0.300.0000.00818.77
8.0.290.0040.00416.74
8.0.280.0050.00218.28
8.0.270.0070.00017.23
8.0.260.0030.00316.70
8.0.250.0000.00816.97
8.0.240.0030.00517.00
8.0.230.0070.00016.96
8.0.220.0030.00316.88
8.0.210.0080.00016.79
8.0.200.0060.00016.88
8.0.190.0040.00416.99
8.0.180.0040.00416.80
8.0.170.0090.00016.77
8.0.160.0050.00216.93
8.0.150.0000.00916.68
8.0.140.0030.00516.82
8.0.130.0030.00313.33
8.0.120.0030.00516.81
8.0.110.0040.00416.92
8.0.100.0000.00716.73
8.0.90.0040.00416.87
8.0.80.0110.00416.76
8.0.70.0050.00316.93
8.0.60.0000.00716.71
8.0.50.0000.00716.94
8.0.30.0140.00616.87
8.0.20.0120.01017.40
8.0.10.0000.00717.05
8.0.00.0080.01116.72
7.4.330.0000.00514.77
7.4.320.0060.00016.46
7.4.300.0070.00016.55
7.4.290.0030.00316.43
7.4.280.0000.00816.39
7.4.270.0000.00716.51
7.4.260.0030.00313.20
7.4.250.0030.00616.43
7.4.240.0050.00316.46
7.4.230.0000.00716.63
7.4.220.0100.01316.52
7.4.210.0080.00716.54
7.4.200.0030.00316.23
7.4.190.0040.00416.68
7.4.160.0140.00316.59
7.4.150.0110.01117.40
7.4.140.0170.01017.86
7.4.130.0100.00716.49
7.4.120.0090.00816.41
7.4.110.0050.01116.37
7.4.100.0070.01416.45
7.4.90.0140.00816.53
7.4.80.0060.01219.04
7.4.70.0140.00316.42
7.4.60.0210.00916.48
7.4.50.0000.00516.19
7.4.40.0000.01722.27
7.4.30.0060.01216.43
7.4.00.0090.00715.08
7.3.330.0030.00313.07
7.3.320.0000.00513.07
7.3.310.0030.00316.22
7.3.300.0070.00016.25
7.3.290.0000.01416.29
7.3.280.0110.00816.24
7.3.270.0060.01017.40
7.3.260.0020.01718.24
7.3.250.0100.01016.44
7.3.240.0170.00016.28
7.3.230.0100.00616.39
7.3.210.0130.00616.26
7.3.200.0030.01419.39
7.3.190.0140.00316.30
7.3.180.0000.01616.32
7.3.170.0120.00316.37
7.3.160.0000.01516.23
7.3.120.0060.01014.68
7.3.110.0080.00614.63
7.3.100.0030.01014.78
7.3.90.0120.00314.66
7.3.80.0030.00814.57
7.3.70.0000.00914.66
7.3.60.0030.01214.33
7.3.50.0100.00314.69
7.3.40.0040.00914.81
7.3.30.0000.00814.80
7.3.20.0040.00416.61
7.3.10.0050.00716.51
7.3.00.0040.00716.65
7.2.330.0070.01116.61
7.2.320.0050.01316.49
7.2.310.0060.01616.41
7.2.300.0130.00316.36
7.2.290.0110.00516.61
7.2.250.0070.00714.88
7.2.240.0170.00014.99
7.2.230.0090.00315.08
7.2.220.0030.01015.00
7.2.210.0030.01414.88
7.2.200.0060.00614.82
7.2.190.0030.01014.66
7.2.180.0160.00015.04
7.2.170.0060.01014.70
7.2.130.0070.00716.84
7.2.120.0100.00316.57
7.2.110.0060.01116.51
7.2.100.0000.00916.83
7.2.90.0030.00916.45
7.2.80.0060.00916.97
7.2.70.0070.00716.63
7.2.60.0050.00716.67
7.2.50.0030.01016.86
7.2.40.0030.01016.84
7.2.30.0120.00016.54
7.2.20.0090.00016.72
7.2.10.0100.00316.70
7.2.00.0090.00118.03
7.1.330.0060.00615.88
7.1.320.0080.00315.50
7.1.310.0140.00015.64
7.1.300.0100.00015.68
7.1.290.0060.00615.76
7.1.280.0000.01515.59
7.1.270.0040.00815.67
7.1.260.0040.01115.46
7.1.250.0060.00915.63
7.1.200.0050.00215.42
7.1.100.0070.01017.45
7.1.70.0040.00417.14
7.1.60.0030.01119.40
7.1.50.0000.02116.91
7.1.00.0030.07722.41
7.0.200.0060.00816.69
7.0.140.0000.06022.08
7.0.60.0200.04020.02
7.0.50.0100.05317.82
7.0.40.0070.06720.18
7.0.30.0270.04020.21
7.0.20.0200.05020.32
7.0.10.0100.06320.15
7.0.00.0130.08720.06
5.6.280.0070.06721.10
5.6.210.0100.08020.71
5.6.200.0100.08018.23
5.6.190.0030.09320.63
5.6.180.3630.04320.42
5.6.170.0270.04020.51
5.6.160.0100.06320.44
5.6.150.0070.03718.16
5.6.140.0100.07718.18
5.6.130.0130.07718.24
5.6.120.0030.04720.98
5.6.110.0030.04721.02
5.6.100.0030.04320.97
5.6.90.0100.04020.95
5.6.80.0070.04720.48
5.5.350.0000.05320.44
5.5.340.0170.07018.09
5.5.330.0130.07320.18
5.5.320.0230.04020.20
5.5.310.0530.05320.27
5.5.300.0130.07017.98
5.5.290.0070.06718.08
5.5.280.0070.04020.80
5.5.270.0100.08020.85
5.5.260.0100.08020.88
5.5.250.0070.03720.79
5.5.240.0000.03320.03
5.4.450.0130.05319.20
5.4.440.0170.04019.47
5.4.430.0130.07319.57
5.4.420.0100.06719.57
5.4.410.0000.05019.31
5.4.400.0070.06719.15
5.4.390.0070.03719.08
5.4.380.0100.05718.87
5.4.370.0070.03719.08
5.4.360.0000.05719.14
5.4.350.0130.07319.09
5.4.340.0070.04319.16
5.4.320.0070.04019.08
5.4.310.0070.07718.92
5.4.300.0100.04719.00
5.4.290.0000.06019.23
5.4.280.0100.07318.85
5.4.270.0030.04719.23
5.4.260.0070.05719.14
5.4.250.0130.05319.02
5.4.240.0070.07718.86
5.4.230.0170.05319.23
5.4.220.0030.04018.85
5.4.210.0070.04019.23
5.4.200.0070.04719.25
5.4.190.0130.04019.11
5.4.180.0030.04719.23
5.4.170.0000.05019.23
5.4.160.0000.04019.18
5.4.150.0030.03719.12
5.4.140.0030.03716.32
5.4.130.0030.03716.28
5.4.120.0000.03716.25
5.4.110.0000.03716.44
5.4.100.0100.03016.32
5.4.90.0000.03716.54
5.4.80.0030.03316.29
5.4.70.0100.03016.39
5.4.60.0030.03716.45
5.4.50.0030.03316.47
5.4.40.0000.03716.66
5.4.30.0070.03016.28
5.4.20.0030.03316.38
5.4.10.0030.03316.38
5.4.00.0000.03715.84
5.3.290.0030.04014.55
5.3.280.0070.05314.61
5.3.270.0030.04714.77
5.3.260.0000.04014.64
5.3.250.0030.03714.66
5.3.240.0070.03314.60
5.3.230.0100.03714.59
5.3.220.0030.04014.59
5.3.210.0000.04014.48
5.3.200.0030.03714.64
5.3.190.0070.03314.56
5.3.180.0130.02714.59
5.3.170.0070.03314.56
5.3.160.0000.04014.72
5.3.150.0030.03714.45
5.3.140.0030.03714.48
5.3.130.0070.03314.61
5.3.120.0030.03714.47
5.3.110.0030.03714.55
5.3.100.0030.03714.09
5.3.90.0070.03314.02
5.3.80.0000.04014.02
5.3.70.0070.03014.07
5.3.60.0000.03714.04
5.3.50.0030.03713.97
5.3.40.0000.03713.95
5.3.30.0000.03713.95
5.3.20.0070.03313.77
5.3.10.0030.03313.71
5.3.00.0000.03713.61
5.2.170.0000.03011.05
5.2.160.0030.02711.18
5.2.150.0000.03311.05
5.2.140.0000.03011.11
5.2.130.0100.02011.03
5.2.120.0000.03311.07
5.2.110.0000.03011.26
5.2.100.0070.02311.26
5.2.90.0000.03011.15
5.2.80.0030.03011.25
5.2.70.0000.04011.11
5.2.60.0130.02311.05
5.2.50.0030.05710.94
5.2.40.0030.06011.00
5.2.30.0030.04310.92
5.2.20.0030.03310.93
5.2.10.0070.03011.02
5.2.00.0000.03310.88
5.1.60.0070.04710.02
5.1.50.0070.05310.00
5.1.40.0030.0339.89
5.1.30.0030.06010.23
5.1.20.0070.05710.31
5.1.10.0030.04310.03
5.1.00.0000.06010.23
5.0.50.0070.0438.61
5.0.40.0070.0308.57
5.0.30.0100.0538.21
5.0.20.0070.0338.18
5.0.10.0000.0478.14
5.0.00.0030.0508.18
4.4.90.0030.0377.53
4.4.80.0030.0277.53
4.4.70.0030.0337.53
4.4.60.0030.0137.53
4.4.50.0000.0177.53
4.4.40.0030.0307.53
4.4.30.0000.0377.53
4.4.20.0000.0277.53
4.4.10.0030.0237.53
4.4.00.0070.0537.53
4.3.110.0030.0137.53
4.3.100.0030.0237.53
4.3.90.0000.0237.53
4.3.80.0000.0377.53
4.3.70.0000.0307.53
4.3.60.0070.0307.53
4.3.50.0030.0237.53
4.3.40.0000.0407.53
4.3.30.0000.0237.53
4.3.20.0000.0207.53
4.3.10.0000.0307.53
4.3.00.0000.0307.53

preferences:
39.45 ms | 401 KiB | 5 Q