3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C1 {} interface I1 {} interface I2 {} $v2 = new class (100) extends C1 implements I1, I2 { public function __construct($p) { echo "Inside class " . __CLASS__ . " constructor with parameter $p\n"; } };

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.40.0120.00318.79
8.3.30.0060.00918.65
8.3.20.0040.00420.16
8.3.10.0040.00421.77
8.3.00.0040.00423.48
8.2.170.0100.01022.96
8.2.160.0130.00320.38
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00420.80
8.2.120.0050.00326.35
8.2.110.0040.00421.00
8.2.100.0090.00317.78
8.2.90.0000.00819.14
8.2.80.0080.00017.97
8.2.70.0030.00617.38
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0030.00722.23
8.2.30.0000.00719.36
8.2.20.0070.00017.64
8.2.10.0000.00818.00
8.2.00.0050.00318.15
8.1.270.0060.00322.22
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0060.00623.89
8.1.230.0090.00320.67
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0090.00017.22
8.1.180.0030.00618.10
8.1.170.0030.00518.59
8.1.160.0000.00720.65
8.1.150.0070.00018.79
8.1.140.0000.00919.60
8.1.130.0070.00017.73
8.1.120.0040.00417.38
8.1.110.0050.00317.46
8.1.100.0030.00317.29
8.1.90.0060.00317.37
8.1.80.0000.00717.35
8.1.70.0070.00017.34
8.1.60.0040.00417.45
8.1.50.0000.00817.46
8.1.40.0110.00017.49
8.1.30.0040.00417.59
8.1.20.0050.00317.64
8.1.10.0080.00017.59
8.1.00.0000.00817.51
8.0.300.0000.00720.01
8.0.290.0080.00016.63
8.0.280.0040.00318.32
8.0.270.0030.00317.18
8.0.260.0060.00017.23
8.0.250.0040.00416.98
8.0.240.0000.00816.81
8.0.230.0040.00416.84
8.0.220.0050.00316.91
8.0.210.0030.00316.76
8.0.200.0030.00616.82
8.0.190.0000.00817.01
8.0.180.0050.00216.91
8.0.170.0000.00716.78
8.0.160.0000.00816.83
8.0.150.0000.00716.70
8.0.140.0050.00316.70
8.0.130.0030.00313.30
8.0.120.0040.00416.71
8.0.110.0040.00416.84
8.0.100.0040.00416.73
8.0.90.0040.00416.87
8.0.80.0110.00416.86
8.0.70.0040.00416.71
8.0.60.0020.00516.76
8.0.50.0000.00716.73
8.0.30.0090.01117.00
8.0.20.0110.00817.40
8.0.10.0020.00516.79
8.0.00.0080.00916.87
7.4.330.0050.00016.79
7.4.320.0000.00616.62
7.4.300.0000.00716.51
7.4.290.0040.00416.59
7.4.280.0070.00016.58
7.4.270.0000.00616.43
7.4.260.0070.00016.58
7.4.250.0000.00716.49
7.4.240.0030.00516.48
7.4.230.0000.00716.50
7.4.220.0140.01016.57
7.4.210.0110.00416.66
7.4.200.0000.00716.57
7.4.160.0090.01216.39
7.4.150.0060.01117.40
7.4.140.0110.00817.86
7.4.130.0130.00616.48
7.4.120.0110.00816.48
7.4.110.0100.00716.46
7.4.100.0090.00916.47
7.4.90.0160.00316.30
7.4.80.0180.00419.39
7.4.70.0090.01216.44
7.4.60.0120.00416.59
7.4.50.0100.00716.48
7.4.40.0090.00616.35
7.4.30.0140.00316.55
7.4.00.0080.00514.92
7.3.330.0030.00313.17
7.3.320.0060.00013.30
7.3.310.0000.00716.38
7.3.300.0030.00316.36
7.3.290.0060.00816.31
7.3.280.0100.00916.36
7.3.270.0070.01017.40
7.3.260.0140.00316.30
7.3.250.0100.00716.35
7.3.240.0090.00916.63
7.3.230.0110.00716.44
7.3.210.0100.00516.57
7.3.200.0060.01219.39
7.3.190.0170.00416.68
7.3.180.0130.00916.52
7.3.170.0100.01316.30
7.3.160.0120.00316.17
7.3.10.0080.00416.74
7.3.00.0070.00416.48
7.2.330.0090.00916.71
7.2.320.0090.00616.47
7.2.310.0120.01216.68
7.2.300.0060.01216.74
7.2.290.0060.01216.70
7.2.130.0000.01216.45
7.2.120.0060.00916.89
7.2.110.0070.00716.58
7.2.100.0030.01216.44
7.2.90.0000.01216.64
7.2.80.0060.01116.70
7.2.70.0030.01416.82
7.2.60.0060.01016.85
7.2.50.0120.00917.00
7.2.40.0100.00616.54
7.2.30.0080.00816.89
7.2.20.0100.00616.75
7.2.10.0030.01716.63
7.2.00.0070.01018.09
7.1.250.0040.00715.74
7.1.200.0040.00815.90
7.1.100.0130.00318.05
7.1.70.0040.00417.09
7.1.60.0120.00319.28
7.1.50.0000.02416.87
7.1.00.0030.07722.42
7.0.200.0000.00816.36
7.0.60.0030.04021.71
7.0.50.0070.07017.82
7.0.40.0130.04720.18
7.0.30.0200.04720.09
7.0.20.0130.04720.30
7.0.10.0030.09020.27
7.0.00.0170.07020.09
5.6.280.0030.03021.09
5.6.210.0100.08320.55
5.6.200.0100.05718.18
5.6.190.0000.09320.39
5.6.180.0470.07720.46
5.6.170.0330.06320.58
5.6.160.0030.08020.61
5.6.150.0070.03718.27
5.6.140.0100.08018.16
5.6.130.0000.08318.18
5.6.120.0000.06321.13
5.6.110.0100.06321.04
5.6.100.0100.08320.96
5.6.90.0070.05721.07
5.6.80.0070.07320.51
5.5.350.3870.04020.38
5.5.340.0100.07717.98
5.5.330.0100.08020.13
5.5.320.0270.06720.36
5.5.310.0200.08720.27
5.5.300.0070.04717.94
5.5.290.0070.08017.98
5.5.280.0000.07020.73
5.5.270.0000.04320.64
5.5.260.0170.07320.97
5.5.250.0070.03720.66
5.5.240.0170.07020.15

preferences:
46.61 ms | 400 KiB | 5 Q