3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ public function __construct(){ echo "A::__construct()\n"; } public function somePrint(){ echo "fuck off!"; } public function someCycle($n=100){ $s=''; $arr=array(); $num=0; for($i=0;$i<$n;$i++){ $s.=$i; $num+=$i; array_push($arr, $i); } } } $a = new A(); $a->somePrint();

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.18
8.3.50.0110.00721.89
8.3.40.0090.00618.69
8.3.30.0070.00718.94
8.3.20.0040.00420.08
8.3.10.0040.00423.65
8.3.00.0050.00222.50
8.2.180.0110.00416.34
8.2.170.0110.00722.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0080.00026.16
8.2.120.0040.00422.13
8.2.110.0050.00522.25
8.2.100.0080.00317.59
8.2.90.0050.00219.11
8.2.80.0040.00418.04
8.2.70.0050.00317.50
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0000.00718.22
8.2.30.0060.00317.87
8.2.20.0000.00817.46
8.2.10.0030.00519.41
8.2.00.0060.00317.62
8.1.280.0110.00725.92
8.1.270.0040.00423.91
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00323.84
8.1.230.0080.00319.07
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0000.01017.00
8.1.190.0000.00817.16
8.1.180.0000.00818.10
8.1.170.0060.00318.36
8.1.160.0050.00321.82
8.1.150.0080.00018.56
8.1.140.0070.00017.29
8.1.130.0050.00317.74
8.1.120.0070.00017.38
8.1.110.0000.00817.27
8.1.100.0030.00517.38
8.1.90.0040.00417.38
8.1.80.0070.00017.40
8.1.70.0030.00317.30
8.1.60.0080.00017.61
8.1.50.0030.00617.51
8.1.40.0040.00417.49
8.1.30.0080.00017.49
8.1.20.0000.00717.59
8.1.10.0000.00717.46
8.1.00.0000.00817.52
8.0.300.0080.00018.77
8.0.290.0080.00017.05
8.0.280.0000.00718.44
8.0.270.0080.00017.19
8.0.260.0030.00316.75
8.0.250.0030.00316.90
8.0.240.0080.00316.86
8.0.230.0040.00416.79
8.0.220.0040.00416.76
8.0.210.0030.00316.71
8.0.200.0000.00716.82
8.0.190.0050.00216.80
8.0.180.0040.00416.73
8.0.170.0040.00416.75
8.0.160.0040.00416.73
8.0.150.0050.00316.74
8.0.140.0030.00316.78
8.0.130.0030.00313.28
8.0.120.0070.00016.78
8.0.110.0040.00416.76
8.0.100.0040.00416.77
8.0.90.0050.00316.84
8.0.80.0130.00216.81
8.0.70.0000.00716.68
8.0.60.0070.00016.65
8.0.50.0040.00416.67
8.0.30.0070.01116.96
8.0.20.0100.00817.40
8.0.10.0040.00417.06
8.0.00.0110.00716.71
7.4.330.0060.00015.03
7.4.320.0060.00016.52
7.4.300.0000.00716.58
7.4.290.0030.00316.63
7.4.280.0000.00816.63
7.4.270.0000.00616.66
7.4.260.0070.00016.66
7.4.250.0030.00516.41
7.4.240.0020.00516.52
7.4.230.0000.00716.32
7.4.220.0140.00716.55
7.4.210.0070.00816.53
7.4.200.0070.00016.70
7.4.190.0000.00716.62
7.4.160.0060.00916.58
7.4.150.0110.00617.40
7.4.140.0080.00917.86
7.4.130.0110.00716.45
7.4.120.0090.00916.54
7.4.110.0060.00916.51
7.4.100.0040.01616.60
7.4.90.0060.01216.55
7.4.80.0120.00919.39
7.4.70.0060.01016.43
7.4.60.0060.01116.32
7.4.50.0000.00816.55
7.4.40.0030.01322.77
7.4.30.0080.00816.48
7.4.00.0060.00615.15
7.3.330.0000.00513.09
7.3.320.0030.00213.32
7.3.310.0020.00516.19
7.3.300.0040.00216.12
7.3.290.0160.00316.25
7.3.280.0090.00816.24
7.3.270.0000.01817.40
7.3.260.0100.00716.45
7.3.250.0080.00816.34
7.3.240.0120.00916.46
7.3.230.0050.01116.39
7.3.210.0120.00416.21
7.3.200.0060.00919.39
7.3.190.0100.00716.34
7.3.180.0130.00316.52
7.3.170.0030.01316.27
7.3.160.0090.00616.59
7.3.120.0000.01814.80
7.3.10.0090.00616.63
7.3.00.0030.00616.33
7.2.330.0120.00916.65
7.2.320.0100.00616.39
7.2.310.0100.00716.73
7.2.300.0090.01316.71
7.2.290.0030.01316.56
7.2.130.0060.00616.76
7.2.120.0000.01216.88
7.2.110.0030.01016.73
7.2.100.0040.01216.87
7.2.90.0040.01416.61
7.2.80.0100.00316.79
7.2.70.0070.00716.82
7.2.60.0100.00516.89
7.2.50.0070.00516.97
7.2.40.0060.00917.03
7.2.30.0000.01216.87
7.2.20.0080.00417.05
7.2.10.0130.00316.82
7.2.00.0030.00816.82
7.1.250.0030.00615.43
7.1.200.0040.00815.71
7.1.70.0090.00016.99
7.1.60.0100.01319.29
7.1.50.0130.01016.84
7.1.00.0030.07322.30
7.0.200.0030.00716.83
7.0.140.0000.07021.99
7.0.60.0330.07719.94
7.0.50.0100.06017.84
7.0.40.0100.06720.05
7.0.30.0300.08320.19
7.0.20.0370.07720.33
7.0.10.0130.06020.24
7.0.00.0070.04720.22
5.6.280.0070.07021.15
5.6.210.0000.04320.74
5.6.200.0100.05318.18
5.6.190.0070.04320.46
5.6.180.0000.09320.63
5.6.170.0330.07020.51
5.6.160.0100.08020.55
5.6.150.0030.08018.29
5.6.140.0000.05018.16
5.6.130.0070.08018.30
5.6.120.0070.07320.90
5.6.110.0030.04721.01
5.6.100.0030.08720.98
5.6.90.0130.08021.08
5.6.80.0030.04020.51
5.5.350.0070.02720.41
5.5.340.0030.07317.94
5.5.330.0030.05320.40
5.5.320.0000.04720.25
5.5.310.0230.03720.30
5.5.300.0070.06317.96
5.5.290.0030.05317.94
5.5.280.0000.04320.88
5.5.270.0130.08020.83
5.5.260.0130.07720.76
5.5.250.0170.07720.71
5.5.240.0200.07320.07
5.4.450.4100.03719.52
5.4.440.0100.07319.43
5.4.430.1330.05019.27
5.4.420.3870.04019.29
5.4.410.4530.04019.10
5.4.400.3570.03718.90
5.4.390.3230.03719.16
5.4.380.3970.05019.15
5.4.370.3570.03719.17
5.4.360.3530.03319.15
5.4.350.3870.03718.95
5.4.340.3630.04318.91
5.4.320.3630.04019.12
5.4.310.3770.03318.89
5.4.300.3700.04019.16
5.4.290.3800.03718.96
5.4.280.3970.03719.13
5.4.270.4200.03718.90
5.4.260.4570.03319.15
5.4.250.4600.03319.05
5.4.240.4500.04018.94
5.4.230.4630.03318.94
5.4.220.4470.03719.18
5.4.210.4500.03719.11
5.4.200.4100.04019.16
5.4.190.3670.03719.14
5.4.180.3630.04018.89
5.4.170.3700.03319.05
5.4.160.3730.03718.93
5.4.150.4870.04018.93
5.4.140.4070.04016.49
5.4.130.3930.03316.48
5.4.120.4500.02716.48
5.4.110.4200.03716.21
5.4.100.3700.03716.46
5.4.90.3870.04016.42
5.4.80.4330.03016.37
5.4.70.4070.04016.44
5.4.60.4370.03316.20
5.4.50.3930.03716.26
5.4.40.4200.03016.47
5.4.30.4000.03316.33
5.4.20.3830.03316.40
5.4.10.4300.03316.42
5.4.00.4500.03715.89
5.3.290.3970.03314.56
5.3.280.4170.04314.52
5.3.270.3830.04014.53
5.3.260.4030.03714.66
5.3.250.4670.03014.61
5.3.240.3470.03714.61
5.3.230.4570.05314.61
5.3.220.3770.03314.62
5.3.210.3530.03714.62
5.3.200.3970.04014.71
5.3.190.4000.03714.71
5.3.180.3900.03314.49
5.3.170.4400.04014.57
5.3.160.4370.04014.64
5.3.150.4470.04014.62
5.3.140.4570.03714.61
5.3.130.4200.04314.57
5.3.120.4030.03714.57
5.3.110.4370.03314.55
5.3.100.4670.03014.20
5.3.90.4670.04014.02
5.3.80.4230.03714.05
5.3.70.3970.03314.09
5.3.60.3530.03713.93
5.3.50.3730.03714.01
5.3.40.4300.03713.91
5.3.30.4570.02713.88
5.3.20.4270.04013.78
5.3.10.3570.02713.55
5.3.00.3870.03713.67
5.2.170.3530.02711.14
5.2.160.3200.02711.21
5.2.150.3770.02011.16
5.2.140.3830.03011.12
5.2.130.3700.02711.07
5.2.120.2970.03311.27
5.2.110.3600.03011.15
5.2.100.2900.02711.27
5.2.90.3670.02311.10
5.2.80.3930.03310.99
5.2.70.3230.03311.05
5.2.60.3430.02711.11
5.2.50.3400.02711.03
5.2.40.2730.02711.05
5.2.30.2930.03010.90
5.2.20.1530.03710.93
5.2.10.2170.02311.01
5.2.00.2370.02710.87
5.1.60.2100.0279.95
5.1.50.2100.0279.97
5.1.40.2370.0279.99
5.1.30.2430.02310.40
5.1.20.2370.02710.32
5.1.10.2170.02010.04
5.1.00.2100.02310.06
5.0.50.0930.0208.46
5.0.40.1170.0208.48
5.0.30.1330.0338.23
5.0.20.1400.0178.18
5.0.10.1170.0208.23
5.0.00.1100.0378.17
4.4.90.1400.0176.10
4.4.80.1200.0136.10
4.4.70.1030.0206.10
4.4.60.1430.0176.10
4.4.50.0970.0136.10
4.4.40.1330.0276.10
4.4.30.1170.0176.10
4.4.20.1300.0206.10
4.4.10.1130.0176.10
4.4.00.1170.0276.10
4.3.110.1230.0106.10
4.3.100.1230.0106.10
4.3.90.1170.0136.10
4.3.80.1200.0206.10
4.3.70.1200.0136.10
4.3.60.1170.0136.10
4.3.50.1170.0176.10
4.3.40.1170.0206.10
4.3.30.0770.0276.10
4.3.20.0770.0206.10
4.3.10.0770.0236.10
4.3.00.0770.0176.10

preferences:
47.35 ms | 401 KiB | 5 Q