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(); $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.60.0040.01516.50
8.3.50.0140.00522.04
8.3.40.0070.00718.79
8.3.30.0090.01218.79
8.3.20.0040.00420.21
8.3.10.0050.00323.65
8.3.00.0060.00319.38
8.2.180.0040.01118.63
8.2.170.0040.01122.96
8.2.160.0100.00320.58
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0000.00917.50
8.2.120.0070.00026.35
8.2.110.0100.00022.24
8.2.100.0090.00317.92
8.2.90.0000.00819.22
8.2.80.0030.00517.97
8.2.70.0060.00317.75
8.2.60.0050.00317.89
8.2.50.0050.00318.07
8.2.40.0000.00719.38
8.2.30.0040.00420.67
8.2.20.0000.00917.72
8.2.10.0000.00817.86
8.2.00.0080.00018.00
8.1.280.0180.00425.92
8.1.270.0080.00023.96
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00622.52
8.1.230.0040.00717.79
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0000.00917.22
8.1.190.0060.00317.22
8.1.180.0070.00018.10
8.1.170.0070.00318.63
8.1.160.0000.00721.93
8.1.150.0040.00418.69
8.1.140.0040.00419.45
8.1.130.0000.00717.59
8.1.120.0000.00717.30
8.1.110.0000.00717.34
8.1.100.0050.00217.41
8.1.90.0000.00717.37
8.1.80.0040.00417.27
8.1.70.0000.00717.34
8.1.60.0040.00417.58
8.1.50.0030.00617.46
8.1.40.0060.00317.42
8.1.30.0000.00917.65
8.1.20.0000.00817.52
8.1.10.0050.00217.59
8.1.00.0060.00617.41
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0070.00018.39
8.0.270.0000.00717.17
8.0.260.0030.00517.16
8.0.250.0070.00016.92
8.0.240.0000.00716.94
8.0.230.0070.00316.94
8.0.220.0000.00716.89
8.0.210.0040.00416.92
8.0.200.0000.00716.91
8.0.190.0020.00516.92
8.0.180.0070.00016.77
8.0.170.0080.00016.88
8.0.160.0040.00416.95
8.0.150.0000.00816.82
8.0.140.0080.00016.71
8.0.130.0060.00013.27
8.0.120.0090.00016.88
8.0.110.0040.00416.91
8.0.100.0040.00416.88
8.0.90.0030.00416.92
8.0.80.0060.01016.94
8.0.70.0040.00416.74
8.0.60.0070.00016.78
8.0.50.0000.00816.92
8.0.30.0130.00617.01
8.0.20.0120.00617.40
8.0.10.0090.00016.87
8.0.00.0070.01216.57
7.4.330.0030.00316.77
7.4.320.0030.00316.33
7.4.300.0030.00316.54
7.4.290.0030.00316.48
7.4.280.0050.00316.46
7.4.270.0000.00716.47
7.4.260.0070.00016.55
7.4.250.0000.00816.58
7.4.240.0040.00416.50
7.4.230.0030.00316.57
7.4.220.0070.01816.66
7.4.210.0070.00716.61
7.4.200.0000.00816.33
7.4.160.0080.00816.56
7.4.150.0170.00717.40
7.4.140.0090.01117.86
7.4.130.0080.00816.66
7.4.120.0070.01416.52
7.4.110.0060.01216.50
7.4.100.0130.01016.48
7.4.90.0100.01316.58
7.4.80.0080.01119.39
7.4.70.0090.00916.54
7.4.60.0070.00716.43
7.4.50.0080.00816.50
7.4.40.0060.01016.57
7.4.30.0090.00916.66
7.4.00.0110.00714.96
7.3.330.0050.00013.23
7.3.320.0030.00313.21
7.3.310.0000.00816.06
7.3.300.0070.00016.18
7.3.290.0060.01016.18
7.3.280.0060.00816.21
7.3.270.0120.00617.40
7.3.260.0040.01416.25
7.3.250.0140.00316.40
7.3.240.0120.00416.16
7.3.230.0060.00916.52
7.3.210.0130.00316.58
7.3.200.0160.00016.46
7.3.190.0030.01716.39
7.3.180.0070.01016.41
7.3.170.0100.00716.27
7.3.160.0110.00616.21
7.3.120.0040.01514.85
7.3.110.0070.01014.46
7.3.100.0090.00614.74
7.3.90.0030.00914.62
7.3.80.0060.00614.52
7.3.70.0000.01414.55
7.3.60.0030.00914.78
7.3.50.0090.00614.56
7.3.40.0060.00614.46
7.3.30.0040.00814.64
7.3.20.0030.01016.32
7.3.10.0090.00616.34
7.3.00.0090.00816.55
7.2.330.0090.00916.44
7.2.320.0070.01416.86
7.2.310.0070.01016.68
7.2.300.0120.01116.56
7.2.290.0140.01116.52
7.2.250.0030.01515.06
7.2.240.0100.00714.87
7.2.230.0000.02015.00
7.2.220.0040.00815.16
7.2.210.0070.01014.86
7.2.200.0030.01014.98
7.2.190.0030.01015.02
7.2.180.0040.00815.00
7.2.170.0070.00715.05
7.2.160.0000.01714.69
7.2.150.0100.00017.05
7.2.140.0160.00016.79
7.2.130.0060.01016.88
7.2.120.0120.00716.77
7.2.110.0120.00516.61
7.2.100.0080.00916.58
7.2.90.0110.00916.51
7.2.80.0130.00416.58
7.2.70.0080.01016.73
7.2.60.0090.00816.65
7.2.50.0120.01216.82
7.2.40.0140.00316.59
7.2.30.0090.01116.79
7.2.20.0100.00716.47
7.2.10.0050.01016.76
7.2.00.0070.00917.58
7.1.330.0030.01015.82
7.1.320.0040.01115.54
7.1.310.0040.01115.77
7.1.300.0110.00415.57
7.1.290.0070.00315.76
7.1.280.0100.00615.64
7.1.270.0030.01015.85
7.1.260.0070.00715.49
7.1.250.0070.01015.50
7.1.200.0060.00915.70
7.1.100.0000.01118.12
7.1.70.0040.00417.12
7.1.60.0130.01319.48
7.1.50.0080.00416.60
7.1.00.0100.06322.57
7.0.200.1390.00314.37
7.0.60.0030.06020.07
7.0.50.0070.08317.86
7.0.40.0000.04720.31
7.0.30.0200.06320.30
7.0.20.0230.05020.10
7.0.10.0000.05020.08
7.0.00.0000.05320.25
5.6.280.0030.05321.11
5.6.210.0100.06320.70
5.6.200.0100.07018.22
5.6.190.0070.08320.57
5.6.180.0170.04720.48
5.6.170.0270.05320.58
5.6.160.0130.08320.54
5.6.150.0070.06718.25
5.6.140.0070.08718.18
5.6.130.0030.08318.15
5.6.120.0070.05720.96
5.6.110.0030.08720.86
5.6.100.0100.08021.02
5.6.90.0070.09021.04
5.6.80.0070.07020.38
5.5.350.4570.03320.44
5.5.340.0100.08317.98
5.5.330.0170.04020.41
5.5.320.0030.08320.38
5.5.310.0170.04320.36
5.5.300.0100.08017.98
5.5.290.0070.07718.09
5.5.280.0070.04720.97
5.5.270.0100.07720.73
5.5.260.0030.06320.65
5.5.250.0030.04020.46
5.5.240.0200.03320.26

preferences:
48.08 ms | 401 KiB | 5 Q