3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Itesti { public function hello(); } class testi { public function test(Itesti $temp) { $temp->hello(); } } $temp = new testi(); $temp->test(new class implements Itesti{ public function hello() { throw new Exception("NOOOOU"); } });

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.00716.63
8.3.50.0130.00922.04
8.3.40.0110.00718.83
8.3.30.0120.00818.79
8.3.20.0000.00720.35
8.3.10.0080.00023.78
8.3.00.0000.00819.79
8.2.180.0140.00718.25
8.2.170.0070.00722.96
8.2.160.0100.00320.26
8.2.150.0020.00524.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00019.48
8.2.110.0090.00022.30
8.2.100.0060.00618.04
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0070.00617.38
8.2.60.0000.00818.04
8.2.50.0070.00418.07
8.2.40.0050.00322.31
8.2.30.0080.00020.63
8.2.20.0040.00417.64
8.2.10.0040.00418.12
8.2.00.0000.00718.04
8.1.280.0090.01225.92
8.1.270.0140.00324.66
8.1.260.0050.00326.35
8.1.250.0100.00328.09
8.1.240.0000.00923.93
8.1.230.0060.00617.71
8.1.220.0080.00017.74
8.1.210.0030.00718.77
8.1.200.0090.00017.23
8.1.190.0050.00317.22
8.1.180.0040.00418.10
8.1.170.0030.00618.59
8.1.160.0040.00420.64
8.1.150.0050.00318.89
8.1.140.0050.00319.59
8.1.130.0040.00417.66
8.1.120.0000.00717.45
8.1.110.0000.00717.46
8.1.100.0030.00517.36
8.1.90.0080.00017.38
8.1.80.0000.00717.34
8.1.70.0030.00517.34
8.1.60.0040.00417.58
8.1.50.0000.00817.54
8.1.40.0020.00517.41
8.1.30.0040.00417.60
8.1.20.0030.00617.49
8.1.10.0080.00017.64
8.1.00.0000.00817.52
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0030.00318.45
8.0.270.0090.00017.18
8.0.260.0030.00317.27
8.0.250.0000.00716.99
8.0.240.0030.00316.89
8.0.230.0040.00416.90
8.0.220.0070.00016.85
8.0.210.0000.00717.00
8.0.200.0000.00716.91
8.0.190.0050.00317.04
8.0.180.0000.00817.02
8.0.170.0020.00516.97
8.0.160.0060.00316.85
8.0.150.0060.00317.02
8.0.140.0040.00416.96
8.0.130.0060.00013.36
8.0.120.0040.00416.94
8.0.110.0040.00416.92
8.0.100.0040.00416.93
8.0.90.0000.00716.95
8.0.80.0100.00716.95
8.0.70.0040.00416.86
8.0.60.0000.00717.00
8.0.50.0020.00516.91
8.0.30.0080.01017.22
8.0.20.0090.01317.40
8.0.10.0040.00416.91
8.0.00.0060.01116.79
7.4.330.0000.00516.76
7.4.320.0070.00016.58
7.4.300.0000.00716.53
7.4.290.0070.00016.61
7.4.280.0070.00316.64
7.4.270.0070.00016.62
7.4.260.0030.00716.58
7.4.250.0050.00316.37
7.4.240.0000.00716.53
7.4.230.0040.00416.33
7.4.220.0040.01416.55
7.4.210.0060.01016.58
7.4.200.0000.00816.50
7.4.160.0040.01116.49
7.4.150.0030.01417.40
7.4.140.0130.00717.86
7.4.130.0120.00716.53
7.4.120.0130.01116.46
7.4.110.0100.00716.61
7.4.100.0060.01216.47
7.4.90.0030.01416.43
7.4.80.0090.00819.39
7.4.70.0030.01616.50
7.4.60.0030.01316.57
7.4.50.0080.00416.79
7.4.40.0060.01216.38
7.4.30.0090.00816.60
7.4.00.0070.01014.93
7.3.330.0030.00313.36
7.3.320.0000.00613.22
7.3.310.0070.00016.20
7.3.300.0000.00716.37
7.3.290.0030.00316.32
7.3.280.0070.00816.34
7.3.270.0030.01417.40
7.3.260.0130.00316.51
7.3.250.0140.00616.44
7.3.240.0060.01316.43
7.3.230.0120.00416.43
7.3.210.0110.00616.48
7.3.200.0060.01016.43
7.3.190.0180.00316.39
7.3.180.0110.00416.57
7.3.170.0150.00716.43
7.3.160.0160.00616.32
7.3.120.0210.01114.60
7.3.110.0190.01114.54
7.3.100.0190.01014.67
7.3.90.0180.01314.78
7.3.80.0220.00614.81
7.3.70.0160.01114.70
7.3.60.0140.01114.88
7.3.50.0170.01314.86
7.3.40.0120.01814.63
7.3.30.0130.01014.79
7.3.20.0240.00516.89
7.3.10.0250.00316.33
7.3.00.0100.01016.43
7.2.330.0060.01216.29
7.2.320.0060.01216.57
7.2.310.0100.00716.66
7.2.300.0060.01016.61
7.2.290.0060.01016.69
7.2.240.0210.00515.14
7.2.230.0110.01715.04
7.2.220.0160.01315.06
7.2.210.0180.01014.85
7.2.200.0120.01815.04
7.2.190.0230.00414.93
7.2.180.0110.01815.07
7.2.170.0170.01115.06
7.2.160.0160.01215.01
7.2.150.0160.01617.05
7.2.140.0190.00816.64
7.2.130.0250.00316.91
7.2.120.0100.02017.01
7.2.110.0160.01616.92
7.2.100.0230.00616.74
7.2.90.0260.00717.07
7.2.80.0210.01417.18
7.2.70.0240.00816.71
7.2.60.0080.01516.91
7.2.50.0140.01716.96
7.2.40.0200.01216.73
7.2.30.0240.00216.93
7.2.20.0130.01316.78
7.2.10.0150.01516.61
7.2.00.0150.00718.09
7.1.330.0190.00915.94
7.1.320.0180.00915.39
7.1.310.0130.01315.55
7.1.300.0140.01415.78
7.1.290.0150.01215.86
7.1.280.0140.01015.52
7.1.270.0180.01115.54
7.1.260.0170.01115.46
7.1.250.0110.01515.68
7.1.200.0040.00815.55
7.1.100.0160.00317.99
7.1.70.0060.00317.04
7.1.60.0090.01619.52
7.1.50.0070.01416.86
7.1.00.0100.07022.42
7.0.200.0060.00316.78
7.0.60.0000.06319.91
7.0.50.0100.04017.86
7.0.40.0030.04320.26
7.0.30.0230.04320.34
7.0.20.0230.08320.09
7.0.10.0100.08320.10
7.0.00.0100.04320.07
5.6.280.0000.03321.04
5.6.210.0030.06320.77
5.6.200.0130.04318.20
5.6.190.0170.07020.63
5.6.180.0300.07320.52
5.6.170.0400.07020.50
5.6.160.0030.08320.57
5.6.150.0070.04318.14
5.6.140.0070.03718.18
5.6.130.0100.05318.15
5.6.120.0100.06021.12
5.6.110.0000.09321.14
5.6.100.0030.07021.01
5.6.90.0070.05721.00
5.6.80.0130.07320.51
5.5.350.0230.07720.43
5.5.340.0030.05717.95
5.5.330.0070.05720.18
5.5.320.0570.06720.36
5.5.310.0170.08020.35
5.5.300.0100.07717.98
5.5.290.0130.07717.92
5.5.280.0130.08020.89
5.5.270.0100.08020.76
5.5.260.0130.06320.80
5.5.250.0070.03720.71
5.5.240.0400.06320.15

preferences:
48.59 ms | 401 KiB | 5 Q