3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a = 1; public function __construct($a) { $this->a = $a; } } class B { public $b = 1; public function __construct($b) { if ($b === 1) { $this->b = $b; } } } new A(1); new B(1);

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.0150.00018.55
8.3.50.0290.01021.98
8.3.40.0120.00318.63
8.3.30.0040.01119.07
8.3.20.0040.00420.16
8.3.10.0090.00023.70
8.3.00.0060.00319.07
8.2.180.0090.00618.41
8.2.170.0100.00322.96
8.2.160.0000.01520.43
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00319.54
8.2.110.0000.01022.30
8.2.100.0080.00317.72
8.2.90.0030.00517.75
8.2.80.0080.00017.97
8.2.70.0000.00917.80
8.2.60.0000.01018.09
8.2.50.0000.00818.10
8.2.40.0040.00419.29
8.2.30.0000.00819.08
8.2.20.0050.00317.54
8.2.10.0040.00417.99
8.2.00.0040.00417.66
8.1.280.0160.01225.92
8.1.270.0060.00318.79
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.84
8.1.230.0070.00419.00
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.12
8.1.190.0060.00317.23
8.1.180.0080.00018.10
8.1.170.0080.00018.37
8.1.160.0040.00418.82
8.1.150.0000.00818.67
8.1.140.0030.00517.38
8.1.130.0030.00617.81
8.1.120.0000.00717.40
8.1.110.0070.00017.39
8.1.100.0000.00717.31
8.1.90.0030.00317.34
8.1.80.0050.00217.41
8.1.70.0030.00317.31
8.1.60.0000.00817.55
8.1.50.0000.00917.45
8.1.40.0000.00717.55
8.1.30.0000.00917.71
8.1.20.0070.00317.64
8.1.10.0000.00717.43
8.1.00.0000.00717.46
8.0.300.0080.00021.56
8.0.290.0030.00616.63
8.0.280.0040.00418.38
8.0.270.0040.00417.18
8.0.260.0060.00017.19
8.0.250.0070.00016.86
8.0.240.0090.00016.88
8.0.230.0030.00316.87
8.0.220.0070.00016.76
8.0.210.0000.00716.64
8.0.200.0030.00316.71
8.0.190.0080.00016.80
8.0.180.0070.00016.80
8.0.170.0000.00916.71
8.0.160.0030.00316.77
8.0.150.0070.00016.60
8.0.140.0000.00716.62
8.0.130.0000.00613.20
8.0.120.0050.00316.76
8.0.110.0000.00716.74
8.0.100.0070.00016.66
8.0.90.0040.00416.87
8.0.80.0040.01816.89
8.0.70.0000.00716.75
8.0.60.0000.00816.89
8.0.50.0040.00416.72
8.0.30.0120.01017.04
8.0.20.0140.00917.40
8.0.10.0000.00716.84
8.0.00.0100.00716.50
7.4.330.0000.00515.09
7.4.320.0030.00316.45
7.4.300.0060.00016.34
7.4.290.0050.00516.54
7.4.280.0000.00716.39
7.4.270.0000.00716.56
7.4.260.0090.00016.41
7.4.250.0000.00716.54
7.4.240.0020.00516.45
7.4.230.0000.00716.33
7.4.220.0040.01416.32
7.4.210.0130.00316.49
7.4.200.0020.00516.65
7.4.160.0120.00316.41
7.4.150.0070.01717.40
7.4.140.0100.00717.86
7.4.130.0130.00716.58
7.4.120.0120.00616.50
7.4.110.0160.00616.54
7.4.100.0090.01216.38
7.4.90.0060.01216.49
7.4.80.0070.01719.39
7.4.70.0070.01016.56
7.4.60.0100.00716.47
7.4.50.0050.00016.46
7.4.40.0110.01116.45
7.4.30.0070.01016.41
7.4.00.0000.01015.05
7.3.330.0060.00013.30
7.3.320.0060.00013.29
7.3.310.0000.00716.45
7.3.300.0000.00716.17
7.3.290.0060.00916.26
7.3.280.0090.00916.28
7.3.270.0030.01417.40
7.3.260.0070.01716.58
7.3.250.0090.00816.34
7.3.240.0070.01016.50
7.3.230.0100.01316.39
7.3.210.0120.01216.37
7.3.200.0070.01019.39
7.3.190.0060.01016.29
7.3.180.0090.00916.55
7.3.170.0070.01016.43
7.3.160.0120.00316.53
7.2.330.0060.01316.70
7.2.320.0030.01416.64
7.2.310.0150.00716.31
7.2.300.0100.00716.52
7.2.290.0060.01216.54
7.2.00.0070.01119.21
7.1.100.0040.00818.14
7.1.70.0030.00517.06
7.1.60.0110.01519.22
7.1.50.0030.00716.91
7.1.00.0070.07322.36
7.0.200.0040.00416.82
7.0.140.0030.07322.08
7.0.60.0070.04319.78
7.0.50.0000.09017.97
7.0.40.0030.08320.30
7.0.30.0070.05020.09
7.0.20.0270.08320.24
7.0.10.0170.07320.38
7.0.00.0100.03720.30
5.6.280.0030.07321.02
5.6.210.0170.07020.53
5.6.200.0070.05718.19
5.6.190.0070.04320.33
5.6.180.0270.04720.41
5.6.170.0330.06020.57
5.6.160.0070.08320.39
5.6.150.0130.07318.22
5.6.140.0030.04018.28
5.6.130.0030.07718.29
5.6.120.0030.08021.01
5.6.110.0030.04021.05
5.6.100.0030.04720.89
5.6.90.0100.04020.95
5.6.80.0030.03720.38
5.5.350.0230.02320.44
5.5.340.0130.05317.93
5.5.330.0000.09020.27
5.5.320.0230.05720.34
5.5.310.0470.05720.26
5.5.300.0100.07717.96
5.5.290.0070.07718.07
5.5.280.0000.04320.77
5.5.270.0070.08320.80
5.5.260.0170.07320.75
5.5.250.0100.07720.72
5.5.240.0030.07320.27
5.4.450.0700.08019.71
5.4.440.0270.04319.45
5.4.430.0100.05719.51
5.4.420.0200.04719.21
5.4.410.0200.05319.08
5.4.400.0200.04719.32
5.4.390.0130.05719.23
5.4.380.1000.05018.75
5.4.370.0930.04718.79
5.4.360.0930.05718.77
5.4.350.0300.07718.43
5.4.340.0130.06018.63
5.4.320.0200.05318.69
5.4.310.0430.04718.75
5.4.300.0870.06318.49
5.4.290.0870.05718.43
5.4.280.0870.05718.81
5.4.270.0870.05718.82
5.4.260.0800.05718.45
5.4.250.0900.05318.71
5.4.240.0800.06018.63
5.4.230.0870.05018.55
5.4.220.0900.05318.54
5.4.210.0870.05318.55
5.4.200.1000.05316.71
5.4.190.1100.06018.55
5.4.180.0830.05318.41
5.4.170.0900.04718.53
5.4.160.1100.04718.70
5.4.150.0670.06718.69
5.4.140.1000.06316.38
5.4.130.0900.05716.25
5.4.120.0800.05016.42
5.4.110.0800.05316.18
5.4.100.0730.06016.24
5.4.90.0900.04016.40
5.4.80.0970.04316.14
5.4.70.1000.07016.21
5.4.60.0830.05716.25
5.4.50.0800.05716.23
5.4.40.0900.06016.16
5.4.30.0830.04716.21
5.4.20.0800.05016.16
5.4.10.0870.05316.16
5.4.00.0830.05015.77
5.3.290.0970.03714.70
5.3.280.0870.04714.63
5.3.270.0930.05014.73
5.3.260.0870.05314.72
5.3.250.0770.06014.65
5.3.240.0800.06014.83
5.3.230.0830.05314.73
5.3.220.1000.04314.75
5.3.210.0870.05014.74
5.3.200.0800.05014.58
5.3.190.0770.05714.66
5.3.180.0800.05314.77
5.3.170.0900.04714.70
5.3.160.0900.05314.73
5.3.150.0700.06714.69
5.3.140.0930.04014.72
5.3.130.0770.05714.53
5.3.120.0830.05014.60
5.3.110.0930.04714.68
5.3.100.0870.05014.07
5.3.90.0900.05314.02
5.3.80.1130.05714.10
5.3.70.1030.04014.15
5.3.60.1200.05013.99
5.3.50.0770.05314.07
5.3.40.0830.05314.01
5.3.30.1300.04714.04
5.3.20.0900.04013.80
5.3.10.0830.05013.73
5.3.00.1200.06013.64
5.2.170.0630.05011.26
5.2.160.0770.03711.26
5.2.150.0830.04311.38
5.2.140.0700.04311.20
5.2.130.0800.03011.16
5.2.120.0570.05011.16
5.2.110.0700.03311.13
5.2.100.0630.04311.16
5.2.90.0670.03711.33
5.2.80.0600.04711.09
5.2.70.0670.04011.16
5.2.60.0630.04311.18
5.2.50.0630.04311.07
5.2.40.0500.04711.10
5.2.30.0670.04010.99
5.2.20.0470.04711.00
5.2.10.0530.04010.99
5.2.00.0530.04710.82
5.1.60.0600.0379.98
5.1.50.0530.03710.04
5.1.40.0500.0379.96
5.1.30.0570.03310.48
5.1.20.0600.03310.36
5.1.10.0630.03010.20
5.1.00.0530.03710.11
5.0.50.0370.0238.63
5.0.40.0300.0238.55
5.0.30.0300.0438.35
5.0.20.0300.0278.20
5.0.10.0270.0278.20
5.0.00.0270.0438.34
4.4.90.0300.0205.88
4.4.80.0270.0205.88
4.4.70.0300.0275.89
4.4.60.0330.0275.88
4.4.50.0300.0235.89
4.4.40.0300.0335.91
4.4.30.0270.0205.90
4.4.20.0270.0236.03
4.4.10.0270.0235.96
4.4.00.0270.0335.91
4.3.110.0270.0205.80
4.3.100.0330.0175.82
4.3.90.0230.0235.91
4.3.80.0230.0405.80
4.3.70.0430.0105.82
4.3.60.0230.0235.78
4.3.50.0270.0205.77
4.3.40.0230.0435.77
4.3.30.0170.0204.58
4.3.20.0170.0204.57
4.3.10.0170.0204.47
4.3.00.0000.0237.58

preferences:
58.98 ms | 401 KiB | 5 Q