3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassA{ private $nota; public function __construct($n){ $this->nota = $n; } public function showNota(){ echo "Nota: " . $this->nota . "\n"; } } $alunoA1 = new ClassA(10); $alunaA2 = new ClassA(8); $alunoA1->showNota(); $alunoA2->showNota();

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.0130.00318.43
8.3.60.0070.01116.88
8.3.50.0120.00821.15
8.3.40.0110.00418.83
8.3.30.0070.00718.98
8.3.20.0040.00420.16
8.3.10.0040.00423.71
8.3.00.0030.00619.80
8.2.180.0030.01418.22
8.2.170.0040.01122.96
8.2.160.0100.00320.11
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0090.00017.38
8.2.110.0030.00621.11
8.2.100.0040.00817.61
8.2.90.0000.00819.08
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0030.00617.89
8.2.50.0050.00318.07
8.2.40.0030.00519.25
8.2.30.0000.00919.91
8.2.20.0050.00317.66
8.2.10.0040.00417.95
8.2.00.0030.00317.93
8.1.280.0070.01125.92
8.1.270.0060.00321.86
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0090.00024.02
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0070.00318.42
8.1.160.0000.00722.07
8.1.150.0040.00418.90
8.1.140.0060.00317.57
8.1.130.0030.00317.75
8.1.120.0000.00717.36
8.1.110.0070.00017.39
8.1.100.0000.00717.49
8.1.90.0000.00717.39
8.1.80.0040.00417.39
8.1.70.0070.00017.38
8.1.60.0050.00317.60
8.1.50.0040.00417.43
8.1.40.0000.00817.43
8.1.30.0040.00417.61
8.1.20.0050.00317.62
8.1.10.0000.00717.43
8.1.00.0040.00417.58
8.0.300.0040.00418.77
8.0.290.0060.00316.75
8.0.280.0050.00318.39
8.0.270.0080.00017.17
8.0.260.0080.00017.17
8.0.250.0050.00217.06
8.0.240.0040.00417.09
8.0.230.0030.00316.99
8.0.220.0070.00016.89
8.0.210.0040.00416.96
8.0.200.0070.00017.03
8.0.190.0060.00317.02
8.0.180.0030.00616.87
8.0.170.0040.00416.86
8.0.160.0040.00417.07
8.0.150.0000.00816.77
8.0.140.0050.00316.87
8.0.130.0050.00013.47
8.0.120.0040.00416.82
8.0.110.0040.00416.98
8.0.100.0050.00317.05
8.0.90.0040.00417.02
8.0.80.0030.01316.96
8.0.70.0000.00716.84
8.0.60.0040.00416.84
8.0.50.0040.00416.68
8.0.30.0120.00717.19
8.0.20.0090.00917.40
8.0.10.0000.00716.90
8.0.00.0160.00116.85
7.4.330.0020.00215.08
7.4.320.0060.00016.44
7.4.300.0070.00016.63
7.4.290.0000.00816.53
7.4.280.0000.00816.40
7.4.270.0000.00716.63
7.4.260.0030.00316.64
7.4.250.0040.00416.47
7.4.240.0050.00316.63
7.4.230.0030.00416.59
7.4.220.0070.01116.51
7.4.210.0030.01016.64
7.4.200.0030.00316.59
7.4.160.0050.01116.58
7.4.150.0100.00717.40
7.4.140.0130.00817.86
7.4.130.0090.01616.55
7.4.120.0110.00916.61
7.4.110.0140.00716.35
7.4.100.0090.01116.47
7.4.90.0070.01016.49
7.4.80.0170.00019.39
7.4.70.0090.00616.42
7.4.60.0140.00316.66
7.4.50.0040.00416.64
7.4.40.0110.00616.55
7.4.30.0070.01116.37
7.4.00.0000.01614.97
7.3.330.0000.00613.36
7.3.320.0050.00013.22
7.3.310.0000.00716.25
7.3.300.0060.00016.35
7.3.290.0120.00516.35
7.3.280.0110.00616.36
7.3.270.0110.01117.40
7.3.260.0130.00416.36
7.3.240.0120.00916.39
7.3.230.0030.01516.40
7.3.210.0100.00716.38
7.3.200.0090.00616.37
7.3.190.0100.00616.53
7.3.180.0040.01116.51
7.3.170.0040.01116.42
7.3.160.0060.01616.54
7.3.10.0070.00716.58
7.3.00.0060.01116.41
7.2.330.0080.01116.69
7.2.320.0050.01316.78
7.2.310.0140.00316.51
7.2.300.0090.01216.40
7.2.290.0100.01016.71
7.2.130.0070.01016.90
7.2.120.0030.01117.00
7.2.110.0060.00516.78
7.2.100.0040.00816.99
7.2.90.0050.00717.05
7.2.80.0030.00716.77
7.2.70.0100.00416.72
7.2.60.0050.00916.89
7.2.50.0070.00317.09
7.2.40.0030.01016.94
7.2.30.0050.00716.97
7.2.20.0110.00616.82
7.2.10.0090.00617.01
7.2.00.0080.00817.66
7.1.250.0100.00515.64
7.1.200.0030.01015.72
7.1.100.0060.00617.96
7.1.70.0060.00316.83
7.1.60.0130.01019.27
7.1.50.0060.01316.56
7.1.00.0030.07722.36
7.0.200.0040.00714.64
7.0.60.0100.06720.03
7.0.50.0030.06317.85
7.0.40.0130.09320.25
7.0.30.0570.07320.33
7.0.20.0200.07720.05
7.0.10.0270.07720.10
7.0.00.0030.04720.05
5.6.280.0000.05320.90
5.6.210.0070.08320.51
5.6.200.0070.07318.18
5.6.190.0200.07720.33
5.6.180.0330.07020.77
5.6.170.0170.05720.62
5.6.160.0100.05020.50
5.6.150.0100.07718.23
5.6.140.0100.08018.25
5.6.130.0070.05718.21
5.6.120.0000.05021.02
5.6.110.0070.08021.14
5.6.100.0170.07020.99
5.6.90.0070.04321.13
5.6.80.0100.07020.52
5.6.70.3900.04020.52
5.5.350.0100.03720.48
5.5.340.0030.05017.96
5.5.330.0100.04020.32
5.5.320.0300.05720.36
5.5.310.0330.07720.38
5.5.300.0000.04718.00
5.5.290.0030.06017.95
5.5.280.0030.08320.97
5.5.270.0070.05320.76
5.5.260.0100.08320.68
5.5.250.0070.08020.50
5.5.240.0200.07720.14
5.4.450.0100.06319.55
5.4.440.0100.06019.48
5.4.430.0130.05319.27
5.4.420.0070.06019.46
5.4.410.0070.06019.47
5.4.400.0100.05319.36
5.4.390.0100.05718.87
5.4.380.0070.06719.05
5.4.370.0200.04719.13
5.4.360.0230.04719.05
5.4.350.0200.04719.01
5.4.340.0200.05019.07
5.4.320.0230.04319.12
5.4.310.0300.06018.96
5.4.300.0200.07019.23
5.4.290.0130.05719.29
5.4.280.0200.05019.27
5.4.270.0130.05319.13
5.4.260.0030.06319.12
5.4.250.0130.05319.22
5.4.240.0170.05019.02
5.4.230.0130.06019.13
5.4.220.0100.05719.29
5.4.210.0200.04719.14
5.4.200.0170.06719.12
5.4.190.0200.06019.11
5.4.180.0270.04319.35
5.4.170.0030.06019.13
5.4.160.0100.05319.10
5.4.150.0130.05719.25
5.4.140.0170.05016.34
5.4.130.0170.04716.38
5.4.120.0170.04316.43
5.4.110.0030.06016.53
5.4.100.0170.04716.60
5.4.90.0130.04716.57
5.4.80.0130.04716.59
5.4.70.0270.04716.52
5.4.60.0330.05016.43
5.4.50.0030.04316.52
5.4.40.0030.07316.39
5.4.30.0070.03316.50
5.4.20.0270.06016.18

preferences:
58.33 ms | 401 KiB | 5 Q