3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Exp { public function x();} class First implements Exp { public function x() {} } class Second {} function x(Exp $e){ echo get_class($e)."\n"; } x(new First); x(new Second); ?>

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.70.0120.00616.63
8.3.60.0130.00716.88
8.3.50.0060.01218.34
8.3.40.0110.00418.61
8.3.30.0040.01118.38
8.3.20.0050.00319.29
8.3.10.0040.00423.47
8.3.00.0080.00020.62
8.2.180.0070.00718.43
8.2.170.0100.01022.96
8.2.160.0100.00322.10
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0080.00019.54
8.2.120.0040.00426.35
8.2.110.0060.00322.07
8.2.100.0040.00718.16
8.2.90.0050.00317.75
8.2.80.0040.00417.97
8.2.70.0040.00418.04
8.2.60.0040.00418.34
8.2.50.0080.00018.10
8.2.40.0040.00419.32
8.2.30.0040.00419.14
8.2.20.0000.00718.04
8.2.10.0040.00418.05
8.2.00.0050.00317.66
8.1.280.0070.00725.92
8.1.270.0040.00420.65
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0000.00921.29
8.1.230.0050.00518.98
8.1.220.0040.00417.76
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0060.00317.23
8.1.180.0080.00018.10
8.1.170.0040.00418.51
8.1.160.0030.00518.71
8.1.150.0020.00518.72
8.1.140.0030.00322.11
8.1.130.0000.00820.30
8.1.120.0030.00317.44
8.1.110.0000.00817.24
8.1.100.0000.00817.29
8.1.90.0000.00917.32
8.1.80.0040.00417.36
8.1.70.0030.00317.27
8.1.60.0100.00017.51
8.1.50.0070.00017.45
8.1.40.0000.00717.33
8.1.30.0030.00517.56
8.1.20.0040.00417.53
8.1.10.0000.00717.39
8.1.00.0050.00317.31
8.0.300.0040.00718.77
8.0.290.0080.00016.75
8.0.280.0000.00718.44
8.0.270.0080.00017.29
8.0.260.0050.00318.46
8.0.250.0070.00016.94
8.0.240.0030.00316.99
8.0.230.0030.00316.97
8.0.220.0000.00716.86
8.0.210.0030.00316.94
8.0.200.0030.00317.00
8.0.190.0030.00616.94
8.0.180.0040.00416.86
8.0.170.0000.00816.95
8.0.160.0040.00416.84
8.0.150.0060.00316.86
8.0.140.0040.00416.84
8.0.130.0060.00013.40
8.0.120.0030.00516.94
8.0.110.0040.00416.99
8.0.100.0000.00716.89
8.0.90.0030.00616.94
8.0.80.0110.00716.89
8.0.70.0040.00416.96
8.0.60.0020.00516.89
8.0.50.0030.00416.88
8.0.30.0120.00817.10
8.0.20.0110.00817.40
8.0.10.0000.00716.96
8.0.00.0050.01416.82
7.4.330.0030.00315.55
7.4.320.0000.00616.48
7.4.300.0060.00016.33
7.4.290.0000.00716.47
7.4.280.0030.00616.41
7.4.270.0000.00716.52
7.4.260.0070.00016.50
7.4.250.0030.00316.48
7.4.240.0000.00716.54
7.4.230.0030.00316.23
7.4.220.0040.00416.34
7.4.210.0070.00816.55
7.4.200.0000.00716.47
7.4.160.0080.00716.41
7.4.140.0100.00917.86
7.4.130.0060.01016.62
7.4.120.0110.00816.49
7.4.110.0110.00816.61
7.4.100.0060.01116.36
7.4.90.0030.01316.43
7.4.80.0080.01019.39
7.4.70.0030.02016.58
7.4.60.0140.00316.40
7.4.50.0030.01316.60
7.4.40.0070.01016.46
7.4.00.0060.01014.75
7.3.330.0020.00213.39
7.3.320.0060.00013.35
7.3.310.0030.00616.26
7.3.300.0000.00616.32
7.3.290.0000.00816.28
7.3.280.0090.00716.36
7.3.260.0110.00716.45
7.3.240.0090.00916.46
7.3.230.0130.00416.40
7.3.210.0070.01016.44
7.3.200.0080.01216.50
7.3.190.0060.01216.55
7.3.180.0110.01116.44
7.3.170.0100.01016.44
7.3.160.0090.01316.55
7.3.120.0090.00714.84
7.3.110.0080.00914.76
7.3.100.0090.00514.99
7.3.90.0060.00814.90
7.3.80.0060.00914.84
7.3.70.0050.01315.02
7.3.60.0050.00714.93
7.3.50.0060.01014.77
7.3.40.0050.00914.58
7.3.30.0050.00714.82
7.3.20.0100.00516.57
7.3.10.0080.00816.75
7.3.00.0040.00816.76
7.2.330.0060.01116.59
7.2.320.0030.01316.42
7.2.310.0100.00716.55
7.2.300.0070.01016.57
7.2.290.0110.00816.50
7.2.250.0080.00815.04
7.2.240.0070.01414.52
7.2.230.0060.01115.07
7.2.220.0040.01114.53
7.2.210.0050.01114.81
7.2.200.0070.01014.93
7.2.190.0060.00914.83
7.2.180.0090.00515.03
7.2.170.0050.01214.96
7.2.110.0180.00814.58
7.2.100.0810.00614.56
7.2.90.0230.00514.71
7.2.80.0200.00514.71
7.2.70.0190.00815.06
7.2.60.0170.01014.88
7.2.50.0600.01014.82
7.2.40.0240.00514.99
7.2.30.0240.00314.89
7.2.20.0250.00914.87
7.2.10.0220.01014.80
7.2.00.0250.00614.73
7.1.330.0070.00715.72
7.1.320.0100.00515.78
7.1.310.0030.01115.67
7.1.300.0100.00215.67
7.1.290.0090.00715.77
7.1.280.0080.00415.83
7.1.270.0050.00715.76
7.1.260.0020.01115.74
7.1.230.0200.00313.92
7.1.220.0160.00913.69
7.1.210.0220.00713.94
7.1.200.0160.01013.71
7.1.190.0190.00813.77
7.1.180.0170.00914.07
7.1.170.0300.00613.69
7.1.160.0190.01013.85
7.1.150.0250.00513.86
7.1.140.0230.00713.76
7.1.130.0310.00813.82
7.1.120.0280.00813.99
7.1.110.0180.00813.89
7.1.100.0300.00313.85
7.1.90.0260.00713.77
7.1.80.0730.00513.94
7.1.70.0290.00213.68
7.1.60.0430.00531.57
7.1.50.0420.01031.73
7.1.40.0330.00731.75
7.1.30.0370.00731.65
7.1.20.0390.00831.75
7.1.10.0180.01013.81
7.1.00.0190.00713.79
5.6.380.0110.00214.30

preferences:
50.43 ms | 400 KiB | 5 Q