3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MeuTeste{ public function __construct(){ echo 'começou'; } public function receber(string $nome):string{ return 123; } } $teste = new MeuTeste(); echo $teste->receber('Tom');

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.70.0110.00418.38
8.3.60.0140.00416.50
8.3.50.0060.01321.97
8.3.40.0100.00318.85
8.3.30.0090.00918.83
8.3.20.0040.00420.28
8.3.10.0080.00023.48
8.3.00.0040.00419.29
8.2.180.0070.00716.38
8.2.170.0130.00722.96
8.2.160.0070.01020.39
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0030.00617.50
8.2.120.0070.00026.35
8.2.110.0090.00020.42
8.2.100.0090.00317.91
8.2.90.0030.00519.03
8.2.80.0000.00817.97
8.2.70.0000.00917.38
8.2.60.0050.00317.93
8.2.50.0050.00318.07
8.2.40.0040.00419.46
8.2.30.0040.00420.68
8.2.20.0000.01017.75
8.2.10.0040.00418.01
8.2.00.0070.00017.90
8.1.280.0070.00725.92
8.1.270.0040.00423.79
8.1.260.0040.00428.09
8.1.250.0060.00328.09
8.1.240.0040.00423.82
8.1.230.0110.00020.66
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0080.00017.23
8.1.190.0000.00817.00
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0000.00721.85
8.1.150.0000.00718.79
8.1.140.0040.00419.53
8.1.130.0030.00317.70
8.1.120.0040.00417.36
8.1.110.0030.00317.42
8.1.100.0040.00417.34
8.1.90.0040.00417.39
8.1.80.0000.00817.29
8.1.70.0030.00317.21
8.1.60.0060.00317.46
8.1.50.0000.00817.41
8.1.40.0030.00517.53
8.1.30.0040.00417.63
8.1.20.0000.00717.61
8.1.10.0060.00317.52
8.1.00.0090.00317.41
8.0.300.0070.00018.77
8.0.290.0040.00416.72
8.0.280.0040.00418.35
8.0.270.0030.00317.14
8.0.260.0070.00017.26
8.0.250.0000.00717.00
8.0.240.0030.00317.07
8.0.230.0080.00216.96
8.0.220.0040.00416.94
8.0.210.0040.00416.75
8.0.200.0030.00316.96
8.0.190.0020.00516.83
8.0.180.0030.00516.88
8.0.170.0000.00816.98
8.0.160.0040.00416.81
8.0.150.0050.00316.84
8.0.140.0080.00016.86
8.0.130.0000.00613.39
8.0.120.0040.00416.82
8.0.110.0040.00416.91
8.0.100.0030.00516.80
8.0.90.0000.00716.96
8.0.80.0130.00916.88
8.0.70.0050.00316.91
8.0.60.0000.00916.79
8.0.50.0020.00516.70
8.0.30.0090.01016.91
8.0.20.0070.01117.42
8.0.10.0030.00616.89
8.0.00.0080.01016.93
7.4.330.0050.00016.82
7.4.320.0000.00616.44
7.4.300.0000.00616.50
7.4.290.0030.00316.53
7.4.280.0040.00416.59
7.4.270.0030.00316.61
7.4.260.0000.00716.59
7.4.250.0000.00716.54
7.4.240.0010.00616.57
7.4.230.0070.00016.40
7.4.220.0090.01016.46
7.4.210.0070.00716.50
7.4.200.0030.00316.59
7.4.160.0150.00816.55
7.4.150.0190.00017.40
7.4.140.0100.01217.86
7.4.130.0100.00816.58
7.4.120.0110.00816.67
7.4.110.0100.00716.57
7.4.100.0110.01116.45
7.4.90.0130.01016.50
7.4.80.0180.00019.39
7.4.70.0120.00616.49
7.4.60.0130.00316.49
7.4.50.0040.01116.18
7.4.40.0110.00816.47
7.4.30.0140.00316.44
7.4.00.0090.00814.83
7.3.330.0000.00513.17
7.3.320.0020.00213.25
7.3.310.0030.00316.29
7.3.300.0000.00616.26
7.3.290.0060.01116.19
7.3.280.0060.01016.24
7.3.270.0060.01017.40
7.3.260.0090.00816.49
7.3.250.0070.01116.36
7.3.240.0090.00816.20
7.3.230.0070.01016.39
7.3.210.0000.01816.37
7.3.200.0140.00916.53
7.3.190.0060.01316.15
7.3.180.0090.00616.23
7.3.170.0030.01316.45
7.3.160.0110.00716.18
7.3.120.0000.01714.88
7.3.110.0000.01814.80
7.3.100.0090.00614.67
7.3.90.0090.00614.61
7.3.80.0070.00714.43
7.3.70.0130.00314.76
7.3.60.0090.00314.78
7.3.50.0030.01014.69
7.3.40.0060.00314.53
7.3.30.0060.00614.75
7.3.20.0060.00916.50
7.3.10.0080.00516.36
7.3.00.0100.00716.66
7.2.330.0030.01316.67
7.2.320.0090.00916.63
7.2.310.0100.00716.64
7.2.300.0100.01316.84
7.2.290.0170.00616.65
7.2.250.0090.00615.22
7.2.240.0090.00914.73
7.2.230.0030.00914.98
7.2.220.0080.00814.82
7.2.210.0130.00314.82
7.2.200.0060.00915.07
7.2.190.0060.00614.87
7.2.180.0030.01014.83
7.2.170.0040.00415.04
7.2.60.0030.00616.71
7.2.00.0060.00619.59
7.1.330.0060.01015.38
7.1.320.0070.00715.52
7.1.310.0070.00715.77
7.1.300.0000.01415.32
7.1.290.0040.01115.87
7.1.280.0030.00615.49
7.1.270.0030.00915.57
7.1.260.0070.00415.71
7.1.200.0070.00315.29
7.1.100.0000.01118.02
7.1.70.0000.00717.09
7.1.60.0060.01919.48
7.1.50.0070.01016.86
7.1.00.0030.07722.45
7.0.200.0390.00314.77
7.0.60.0200.08720.06
7.0.50.0100.06017.83
7.0.40.0030.08720.11
7.0.30.0200.06320.26
7.0.20.0270.08020.23
7.0.10.0070.09020.15
7.0.00.0030.05020.13
5.6.280.0070.02721.04
5.6.210.0170.05020.47
5.6.200.0130.04718.18
5.6.190.0070.07320.77
5.6.180.0230.04020.33
5.6.170.0200.08320.47
5.6.160.0130.05020.54
5.6.150.0100.07718.29
5.6.140.0000.09018.21
5.6.130.0200.06318.23
5.6.120.0070.08321.02
5.6.110.0030.09320.89
5.6.100.0070.08320.96
5.6.90.0070.05321.11
5.6.80.0000.05320.26
5.5.350.0330.07020.43
5.5.340.0070.08017.98
5.5.330.0030.04320.19
5.5.320.0070.08020.35
5.5.310.0300.05020.35
5.5.300.0030.08318.09
5.5.290.0100.06017.98
5.5.280.0000.05320.89
5.5.270.0070.05720.97
5.5.260.0200.07020.63
5.5.250.0030.04720.78
5.5.240.0100.03320.19

preferences:
50.91 ms | 401 KiB | 5 Q