3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} interface Bar { public function test(Foo $foo); } class Baz implements Bar { public function test($foo) { var_dump($foo); } } $f = new Foo(); $z = new Baz(); $z->test($f); $z->test(true);

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.0100.00518.43
8.3.50.0160.00421.02
8.3.40.0060.00918.69
8.3.30.0130.00020.12
8.3.20.0040.00420.07
8.3.10.0040.00421.80
8.3.00.0030.00622.57
8.2.180.0100.01018.10
8.2.170.0130.00318.83
8.2.160.0030.01022.96
8.2.150.0090.00924.18
8.2.140.0150.00424.66
8.2.130.0150.00026.16
8.2.120.0090.00919.66
8.2.110.0000.00822.16
8.2.100.0040.00817.84
8.2.90.0000.00818.91
8.2.80.0040.00419.34
8.2.70.0000.00817.63
8.2.60.0050.00318.04
8.2.50.0030.00518.07
8.2.40.0040.00418.09
8.2.30.0030.00618.04
8.2.20.0060.00317.78
8.2.10.0050.00217.61
8.2.00.0050.00217.73
8.1.280.0090.00925.92
8.1.270.0080.00024.66
8.1.260.0030.00526.35
8.1.250.0090.00928.09
8.1.240.0030.00623.96
8.1.230.0030.01019.14
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0030.00617.41
8.1.180.0040.00420.12
8.1.170.0080.00018.75
8.1.160.0030.00322.20
8.1.150.0000.00818.74
8.1.140.0000.00817.36
8.1.130.0000.00717.80
8.1.120.0050.00217.48
8.1.110.0030.00517.34
8.1.100.0060.00317.38
8.1.90.0050.00317.34
8.1.80.0040.00317.48
8.1.70.0030.00317.41
8.1.60.0080.00017.40
8.1.50.0070.00017.48
8.1.40.0040.00417.40
8.1.30.0040.00417.60
8.1.20.0030.00517.65
8.1.10.0040.00417.48
8.1.00.0040.00417.34
8.0.300.0030.00318.77
8.0.290.0040.00417.05
8.0.280.0030.00318.36
8.0.270.0030.00317.25
8.0.260.0060.00016.86
8.0.250.0070.00016.99
8.0.240.0040.00416.84
8.0.230.0000.00816.98
8.0.220.0000.00716.79
8.0.210.0040.00416.93
8.0.200.0000.00716.85
8.0.190.0000.00716.89
8.0.180.0040.00416.78
8.0.170.0000.00916.85
8.0.160.0000.00716.97
8.0.150.0040.00416.85
8.0.140.0000.00716.82
8.0.130.0060.00013.30
8.0.120.0000.00916.86
8.0.110.0050.00216.89
8.0.100.0040.00416.93
8.0.90.0040.00417.00
8.0.80.0120.00316.87
8.0.70.0040.00416.75
8.0.60.0040.00416.69
8.0.50.0030.00516.95
8.0.30.0100.01117.15
8.0.20.0090.00917.40
8.0.10.0040.00416.82
8.0.00.0090.00816.71
7.4.330.0000.00515.00
7.4.320.0030.00316.59
7.4.300.0030.00316.56
7.4.290.0040.00416.52
7.4.280.0000.00616.47
7.4.270.0060.00316.42
7.4.260.0000.00716.47
7.4.250.0030.00516.44
7.4.240.0030.00416.54
7.4.230.0000.00716.47
7.4.220.0110.01216.54
7.4.210.0070.00716.55
7.4.200.0000.00816.50
7.4.190.0000.00716.69
7.4.160.0070.01016.66
7.4.150.0090.00917.40
7.4.140.0060.01117.86
7.4.130.0130.00616.53
7.4.120.0070.01016.38
7.4.110.0040.01216.64
7.4.100.0070.01716.57
7.4.90.0090.01116.43
7.4.80.0070.01019.39
7.4.70.0110.00716.52
7.4.60.0100.00716.41
7.4.50.0000.00416.30
7.4.40.0070.00722.77
7.4.30.0130.00316.43
7.4.00.0060.00614.89
7.3.330.0000.00513.04
7.3.320.0000.00513.17
7.3.310.0070.00016.08
7.3.300.0000.00716.25
7.3.290.0030.01016.26
7.3.280.0080.01016.24
7.3.270.0080.01017.40
7.3.260.0120.00616.34
7.3.250.0080.00916.36
7.3.240.0110.00616.46
7.3.230.0070.01016.39
7.3.210.0070.01116.26
7.3.200.0130.00319.39
7.3.190.0100.00716.19
7.3.180.0080.00816.35
7.3.170.0090.00616.38
7.3.160.0130.00316.34
7.3.120.0060.00914.93
7.3.110.0040.01114.52
7.3.100.0070.00714.95
7.3.90.0080.00814.77
7.3.80.0080.00615.03
7.3.70.0070.00714.54
7.3.60.0000.01614.76
7.3.50.0000.01714.75
7.3.40.0080.00314.79
7.3.30.0070.01014.73
7.3.20.0100.00716.43
7.3.10.0080.00316.57
7.3.00.0100.00316.72
7.2.330.0130.00416.46
7.2.320.0150.00716.64
7.2.310.0140.00316.38
7.2.300.0110.00516.51
7.2.290.0040.01116.56
7.2.240.0100.00715.05
7.2.230.0070.01015.16
7.2.220.0100.00314.93
7.2.210.0040.00714.54
7.2.200.0030.01014.72
7.2.190.0100.00614.91
7.2.180.0060.00914.95
7.2.170.0000.01615.11
7.2.160.0000.01714.71
7.2.150.0000.01616.69
7.2.140.0100.00616.82
7.2.130.0030.01316.87
7.2.120.0000.01616.94
7.2.110.0060.00616.80
7.2.100.0070.00716.79
7.2.90.0120.00316.88
7.2.80.0040.00816.88
7.2.70.0060.00916.81
7.2.60.0100.00616.83
7.2.50.0090.00616.86
7.2.40.0040.01416.89
7.2.30.0040.01516.84
7.2.20.0110.00316.81
7.2.10.0030.01216.83
7.2.00.0020.00918.05
7.1.330.0100.00315.63
7.1.320.0070.00715.62
7.1.310.0030.01015.55
7.1.300.0040.01215.88
7.1.290.0100.00315.65
7.1.280.0030.01015.48
7.1.270.0090.00615.45
7.1.260.0060.00615.57
7.1.250.0060.00915.68
7.1.200.0060.00615.77
7.1.70.0060.00616.84
7.1.60.0100.00017.23
7.1.50.0100.02434.82
7.1.00.0000.03722.57
7.0.200.0000.01416.55
7.0.140.0030.07322.18
7.0.60.0130.06719.99
7.0.50.0100.07717.94
7.0.40.0070.04320.18
7.0.30.0370.04320.03
7.0.20.0330.08020.08
7.0.10.0330.07720.28
7.0.00.0000.08320.11
5.6.280.0100.06720.87
5.6.210.0000.04320.77
5.6.200.0170.06718.29
5.6.190.0070.04020.35
5.6.180.0130.04320.41
5.6.170.0330.07720.47
5.6.160.0100.07720.44
5.6.150.0100.07718.15
5.6.140.0070.06318.17
5.6.130.0030.04318.23
5.6.120.0170.06021.04
5.6.110.0030.04321.05
5.6.100.0170.07721.03
5.6.90.0100.08321.11
5.6.80.0030.04020.51
5.6.70.4530.03320.38
5.5.350.0170.08020.41
5.5.340.0100.05017.98
5.5.330.0030.04020.30
5.5.320.0400.04320.35
5.5.310.0200.08320.35
5.5.300.0070.06017.95
5.5.290.0070.08017.95
5.5.280.0030.08320.99
5.5.270.0030.08320.96
5.5.260.0100.07320.80
5.5.250.0030.07320.59
5.5.240.3670.04320.12
5.4.450.0370.03719.20
5.4.440.0500.03719.17
5.4.430.0070.03019.47
5.4.420.0970.03319.19
5.4.410.0600.04719.04
5.4.400.0670.04018.97
5.4.390.0400.03319.16
5.4.380.0170.05718.63
5.4.370.0130.05018.48
5.4.360.0130.06318.74
5.4.350.0100.07318.78
5.4.340.0200.05018.54
5.4.320.0060.04612.50
5.4.310.0080.04112.50
5.4.300.0070.04112.50
5.4.290.0100.03512.50
5.4.280.0120.03112.37
5.4.270.0080.04612.38
5.4.260.0070.04512.37
5.4.250.0030.04312.37
5.4.240.0070.03412.38
5.4.230.0060.03712.36
5.4.220.0200.02412.36
5.4.210.0130.03612.36
5.4.200.0120.04412.37
5.4.190.0060.03912.36
5.4.180.0080.05212.36
5.4.170.0070.04912.37
5.4.160.0050.04012.36
5.4.150.0070.04012.36
5.4.140.0050.03912.05
5.4.130.0060.03712.04
5.4.120.0150.03412.00
5.4.110.0060.04611.99
5.4.100.0060.03711.98
5.4.90.0120.04111.98
5.4.80.0090.04511.99
5.4.70.0160.05111.98
5.4.60.0080.04811.99
5.4.50.0080.04911.98
5.4.40.0080.04811.97
5.4.30.0050.04111.97
5.4.20.0080.03311.97
5.4.10.0060.03511.97
5.4.00.0050.03811.46
5.3.290.0080.03712.80
5.3.280.0080.04012.70
5.3.270.0060.04912.73
5.3.260.0070.03912.72
5.3.250.0100.03512.72
5.3.240.0120.03912.72
5.3.230.0110.05012.71
5.3.220.0030.04912.68
5.3.210.0080.04712.68
5.3.200.0050.04012.68
5.3.190.0040.05212.68
5.3.180.0040.05412.67
5.3.170.0060.04712.67
5.3.160.0040.04012.67
5.3.150.0060.03812.67
5.3.140.0130.03812.66
5.3.130.0090.05312.66
5.3.120.0130.04612.66
5.3.110.0100.04312.66
5.3.100.0070.04012.12
5.3.90.0050.03912.08
5.3.80.0080.04412.07
5.3.70.0080.04112.08
5.3.60.0100.03512.06
5.3.50.0090.04112.00
5.3.40.0100.03812.00
5.3.30.0070.03511.96
5.3.20.0090.03111.75
5.3.10.0090.04011.70
5.3.00.0090.03811.70
5.2.170.0050.0329.19
5.2.160.0070.0279.20
5.2.150.0050.0319.20
5.2.140.0100.0309.19
5.2.130.0050.0299.15
5.2.120.0050.0299.15
5.2.110.0030.0329.16
5.2.100.0050.0299.16
5.2.90.0060.0299.15
5.2.80.0070.0289.15
5.2.70.0050.0309.15
5.2.60.0120.0289.10
5.2.50.0060.0289.07
5.2.40.0110.0229.05
5.2.30.0070.0279.03
5.2.20.0030.0309.01
5.2.10.0060.0268.92
5.2.00.0090.0248.79
5.1.60.0050.0268.07
5.1.50.0070.0288.07
5.1.40.0080.0208.05
5.1.30.0050.0258.39
5.1.20.0110.0288.43
5.1.10.0040.0348.14
5.1.00.0050.0288.15
5.0.50.0070.0226.62
5.0.40.0050.0206.48
5.0.30.0070.0326.29
5.0.20.0080.0176.27
5.0.10.0050.0216.24
5.0.00.0040.0306.23
4.4.90.0060.0124.78
4.4.80.0040.0144.75
4.4.70.0050.0194.76
4.4.60.0040.0194.75
4.4.50.0060.0174.77
4.4.40.0040.0264.71
4.4.30.0030.0154.76
4.4.20.0060.0204.85
4.4.10.0030.0194.85
4.4.00.0040.0294.76
4.3.110.0050.0204.67
4.3.100.0050.0184.67
4.3.90.0030.0184.63
4.3.80.0050.0224.58
4.3.70.0040.0194.63
4.3.60.0030.0174.63
4.3.50.0020.0174.63
4.3.40.0020.0254.54
4.3.30.0040.0143.28
4.3.20.0040.0143.26
4.3.10.0030.0153.23
4.3.00.0000.01714.48

preferences:
40.76 ms | 401 KiB | 5 Q