3v4l.org

run code in 300+ PHP versions simultaneously
<?php function belette() { echo "Belette !\n"; return 'belette'; } class A { } class B { public function __construct($value) { } } new A(belette()); new B(belette());

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.0110.00418.57
8.3.30.0140.00018.59
8.3.20.0040.00420.10
8.3.10.0080.00023.61
8.3.00.0040.00423.48
8.2.170.0110.00322.96
8.2.160.0070.00720.39
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0050.00320.70
8.2.120.0040.00426.35
8.2.110.0060.00319.52
8.2.100.0000.01117.80
8.2.90.0000.00719.05
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0040.00417.80
8.2.50.0030.01018.09
8.2.40.0000.00722.32
8.2.30.0000.00719.18
8.2.20.0040.00417.66
8.2.10.0000.00817.80
8.2.00.0000.00717.98
8.1.270.0080.00822.16
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0030.00622.06
8.1.230.0030.00717.77
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0090.00017.10
8.1.180.0060.00318.10
8.1.170.0070.00018.50
8.1.160.0000.00720.56
8.1.150.0060.00318.68
8.1.140.0040.00419.34
8.1.130.0000.00717.57
8.1.120.0030.00317.38
8.1.110.0040.00417.38
8.1.100.0040.00417.25
8.1.90.0000.00717.35
8.1.80.0040.00417.32
8.1.70.0000.00717.35
8.1.60.0000.00717.53
8.1.50.0040.00417.39
8.1.40.0050.00317.42
8.1.30.0050.00317.61
8.1.20.0000.00717.40
8.1.10.0000.00717.41
8.1.00.0030.00517.46
8.0.300.0060.00318.77
8.0.290.0070.00016.75
8.0.280.0030.00318.50
8.0.270.0030.00317.25
8.0.260.0000.00617.20
8.0.250.0000.00716.78
8.0.240.0030.00316.75
8.0.230.0060.00016.83
8.0.220.0040.00416.65
8.0.210.0050.00316.80
8.0.200.0000.00716.84
8.0.190.0030.00616.84
8.0.180.0050.00216.75
8.0.170.0040.00416.66
8.0.160.0030.00316.59
8.0.150.0030.00616.73
8.0.140.0100.00016.73
8.0.130.0030.00313.20
8.0.120.0030.00516.62
8.0.110.0000.00716.79
8.0.100.0040.00416.65
8.0.90.0070.00016.78
8.0.80.0070.01316.71
8.0.70.0070.00016.82
8.0.60.0040.00416.63
8.0.50.0040.00416.63
8.0.30.0080.01216.89
8.0.20.0070.01117.40
8.0.10.0000.00716.90
8.0.00.0040.01216.67
7.4.330.0000.00516.84
7.4.320.0030.00316.46
7.4.300.0030.00316.54
7.4.290.0100.00016.42
7.4.280.0030.00516.42
7.4.270.0000.00716.58
7.4.260.0030.00316.41
7.4.250.0000.00716.49
7.4.240.0040.00416.41
7.4.230.0040.00416.34
7.4.220.0110.01116.54
7.4.210.0070.00716.57
7.4.200.0030.00316.62
7.4.160.0040.01116.48
7.4.150.0170.00017.40
7.4.140.0130.00917.86
7.4.130.0090.00816.47
7.4.120.0090.00916.36
7.4.110.0120.00416.36
7.4.100.0090.00916.45
7.4.90.0100.01316.59
7.4.80.0070.01419.39
7.4.70.0110.00616.45
7.4.60.0030.01316.49
7.4.50.0130.00316.43
7.4.40.0090.00616.50
7.4.30.0000.01716.58
7.4.00.0050.01314.78
7.3.330.0030.00313.32
7.3.320.0030.00313.16
7.3.310.0000.00716.39
7.3.300.0030.00316.34
7.3.290.0100.00716.26
7.3.280.0090.00816.30
7.3.270.0080.00817.40
7.3.260.0030.01516.52
7.3.250.0070.01016.20
7.3.240.0110.00616.44
7.3.230.0060.01016.39
7.3.210.0110.00816.30
7.3.200.0060.01119.39
7.3.190.0140.00916.36
7.3.180.0000.01616.56
7.3.170.0060.01216.31
7.3.160.0110.00516.47
7.3.120.0040.01414.75
7.3.110.0070.01114.85
7.3.100.0060.00914.92
7.3.90.0070.00714.99
7.3.80.0100.00314.72
7.3.70.0080.00414.65
7.3.60.0030.01214.94
7.3.50.0070.01014.89
7.3.40.0000.00914.84
7.3.30.0100.00314.61
7.3.20.0060.00916.65
7.3.10.0060.01116.53
7.3.00.0050.00716.76
7.2.330.0140.00416.68
7.2.320.0070.01016.58
7.2.310.0130.00416.31
7.2.300.0040.01416.56
7.2.290.0100.00716.54
7.2.250.0120.00914.80
7.2.240.0070.01115.19
7.2.230.0090.00914.84
7.2.220.0120.00315.21
7.2.210.0060.00914.68
7.2.200.0000.01114.81
7.2.190.0000.01515.06
7.2.180.0030.00614.94
7.2.170.0080.00415.16
7.2.130.0030.00616.96
7.2.120.0090.00616.65
7.2.110.0060.00316.63
7.2.100.0030.01216.82
7.2.90.0040.00816.68
7.2.80.0080.00416.62
7.2.70.0060.00316.88
7.2.60.0030.00816.75
7.2.50.0090.00616.88
7.2.40.0100.00316.76
7.2.30.0090.00416.81
7.2.20.0090.00316.77
7.2.10.0060.00916.57
7.2.00.0040.01117.96
7.1.330.0060.00615.57
7.1.320.0080.00515.46
7.1.310.0030.00715.71
7.1.300.0130.00315.39
7.1.290.0060.00615.73
7.1.280.0040.00715.56
7.1.270.0070.00715.66
7.1.260.0030.00615.68
7.1.250.0000.01015.32
7.1.200.0000.01215.60
7.1.100.0100.00018.12
7.1.70.0000.00716.97
7.1.60.0030.02019.40
7.1.50.0070.01416.96
7.1.00.0030.07722.27
7.0.200.0490.00014.61
7.0.60.0130.03721.55
7.0.50.0130.06017.82
7.0.40.0200.07320.27
7.0.30.0400.08320.07
7.0.20.0370.06020.15
7.0.10.0070.06320.08
7.0.00.0030.04720.27
5.6.280.0030.05721.16
5.6.210.0030.08020.63
5.6.200.0000.07318.18
5.6.190.0070.08020.48
5.6.180.0300.07720.60
5.6.170.0230.05320.62
5.6.160.0070.03720.55
5.6.150.0000.05018.15
5.6.140.0000.04018.17
5.6.130.0030.04018.27
5.6.120.0100.08021.16
5.6.110.0100.08020.89
5.6.100.0030.07020.98
5.6.90.0100.08020.97
5.6.80.0200.06720.35
5.5.350.0070.04020.36
5.5.340.0130.07317.98
5.5.330.0030.05020.27
5.5.320.0270.07320.36
5.5.310.0300.07720.51
5.5.300.0070.07317.94
5.5.290.0100.08018.09
5.5.280.0000.09020.65
5.5.270.0030.06720.87
5.5.260.0000.04320.61
5.5.250.0100.08020.71
5.5.240.0700.03020.07

preferences:
44.74 ms | 400 KiB | 5 Q