3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Veiculo{ public function andar(){ echo 'Estou andando...'; } } class Carro extends Veiculo{} $carro = new Carro(); $carro->andar();

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.0110.00316.50
8.3.50.0100.00822.81
8.3.40.0070.01418.79
8.3.30.0070.00718.95
8.3.20.0040.00420.16
8.3.10.0040.00423.70
8.3.00.0050.00317.50
8.2.180.0070.00716.75
8.2.170.0070.00722.96
8.2.160.0100.00320.57
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0100.01026.16
8.2.120.0070.00021.07
8.2.110.0090.00320.82
8.2.100.0090.00317.72
8.2.90.0000.00817.97
8.2.80.0100.00017.97
8.2.70.0080.00017.63
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0000.00818.05
8.2.20.0050.00317.61
8.2.10.0050.00317.91
8.2.00.0080.00017.66
8.1.280.0110.00425.92
8.1.270.0090.00023.84
8.1.260.0050.00226.35
8.1.250.0050.00228.09
8.1.240.0030.00622.47
8.1.230.0040.00720.91
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00617.22
8.1.190.0080.00017.22
8.1.180.0070.00018.10
8.1.170.0040.00718.52
8.1.160.0000.00721.94
8.1.150.0030.00718.86
8.1.140.0000.00717.42
8.1.130.0050.00317.86
8.1.120.0000.00717.41
8.1.110.0000.00817.36
8.1.100.0040.00417.27
8.1.90.0070.00017.25
8.1.80.0040.00417.28
8.1.70.0000.00717.35
8.1.60.0080.00017.51
8.1.50.0040.00417.52
8.1.40.0060.00317.51
8.1.30.0080.00017.63
8.1.20.0080.00017.62
8.1.10.0040.00417.57
8.1.00.0040.00417.54
8.0.300.0040.00419.91
8.0.290.0070.00016.88
8.0.280.0030.00318.43
8.0.270.0040.00417.18
8.0.260.0000.00717.29
8.0.250.0000.00716.86
8.0.240.0040.00716.81
8.0.230.0070.00016.80
8.0.220.0030.00316.84
8.0.210.0040.00416.83
8.0.200.0000.00616.81
8.0.190.0030.00316.84
8.0.180.0070.00016.83
8.0.170.0000.00816.84
8.0.160.0040.00416.81
8.0.150.0030.01016.77
8.0.140.0060.00316.80
8.0.130.0000.00713.21
8.0.120.0080.00016.69
8.0.110.0040.00416.77
8.0.100.0030.00316.64
8.0.90.0000.00716.86
8.0.80.0040.01616.81
8.0.70.0030.00616.88
8.0.60.0000.00916.89
8.0.50.0000.00716.66
8.0.30.0120.00717.25
8.0.20.0070.01217.40
8.0.10.0040.00416.72
8.0.00.0110.00816.73
7.4.330.0080.00015.00
7.4.320.0030.00316.49
7.4.300.0000.00616.50
7.4.290.0070.00016.50
7.4.280.0000.00816.40
7.4.270.0000.00616.50
7.4.260.0030.00316.50
7.4.250.0040.00416.47
7.4.240.0040.00416.44
7.4.230.0030.00316.67
7.4.220.0070.01016.51
7.4.210.0070.01316.53
7.4.200.0000.00716.33
7.4.160.0090.00616.44
7.4.150.0030.01517.40
7.4.140.0090.00917.86
7.4.130.0180.00016.59
7.4.120.0090.00816.60
7.4.110.0070.01316.31
7.4.100.0030.01416.55
7.4.90.0100.00616.34
7.4.80.0140.00419.39
7.4.70.0160.00016.32
7.4.60.0030.01516.47
7.4.50.0000.00916.18
7.4.40.0060.01516.21
7.4.30.0080.00816.55
7.4.00.0060.00615.20
7.3.330.0000.00513.17
7.3.320.0030.00313.24
7.3.310.0060.00016.29
7.3.300.0000.00716.31
7.3.290.0120.00916.29
7.3.280.0110.00816.25
7.3.270.0130.00317.40
7.3.260.0140.00316.22
7.3.240.0070.01116.24
7.3.230.0070.01016.39
7.3.210.0170.00016.32
7.3.200.0090.00619.39
7.3.190.0040.00416.28
7.3.180.0090.00616.30
7.3.170.0090.01216.38
7.3.160.0060.01216.26
7.2.330.0110.00616.56
7.2.320.0060.01516.53
7.2.310.0060.01516.32
7.2.300.0120.01216.64
7.2.290.0140.00516.41
7.1.70.0110.00816.99
7.1.60.0120.01219.40
7.1.50.0030.02116.41
7.1.00.0000.07722.28
7.0.200.0040.00416.39
7.0.140.0030.07322.11
7.0.60.0100.08020.06
7.0.50.0030.03717.83
7.0.40.0030.07720.24
7.0.30.0370.08020.08
7.0.20.0270.08020.20
7.0.10.0070.06720.21
7.0.00.0130.08320.16
5.6.280.0070.07020.78
5.6.210.0100.07320.67
5.6.200.0170.06318.19
5.6.190.0170.03020.42
5.6.180.0230.05720.48
5.6.170.0200.04720.54
5.6.160.0170.06320.50
5.6.150.0100.03318.29
5.6.140.0100.08318.21
5.6.130.0030.04318.21
5.6.120.0100.08320.97
5.6.110.0170.07720.99
5.6.100.0130.06021.13
5.6.90.0030.07021.13
5.6.80.0030.07720.41
5.5.350.0030.07320.35
5.5.340.0200.05717.99
5.5.330.0070.05020.27
5.5.320.0270.07020.34
5.5.310.0230.04320.39
5.5.300.0100.08017.92
5.5.290.0200.04317.98
5.5.280.0100.03720.85
5.5.270.0130.08020.66
5.5.260.0070.08720.86
5.5.250.0100.07720.55
5.5.240.0200.07020.15
5.4.450.0430.03319.55
5.4.440.0170.04019.38
5.4.430.0330.04719.48
5.4.420.0370.04719.32
5.4.410.0330.03319.04
5.4.400.0270.04719.10
5.4.390.0300.04319.22
5.4.380.0370.05018.56
5.4.370.0430.04018.76
5.4.360.0330.04718.75
5.4.350.0400.07318.53
5.4.340.0570.07318.75
5.4.320.0090.04112.50
5.4.310.0090.03912.50
5.4.300.0070.03712.50
5.4.290.0050.04812.50
5.4.280.0070.03912.39
5.4.270.0070.03912.39
5.4.260.0090.03812.40
5.4.250.0060.03612.39
5.4.240.0040.04212.39
5.4.230.0110.04012.38
5.4.220.0040.03712.39
5.4.210.0060.03812.39
5.4.200.0070.03912.39
5.4.190.0030.03712.38
5.4.180.0050.04212.38
5.4.170.0090.03712.39
5.4.160.0060.03812.39
5.4.150.0070.03412.39
5.4.140.0020.03912.07
5.4.130.0070.03512.05
5.4.120.0060.03312.02
5.4.110.0050.03412.01
5.4.100.0060.03312.02
5.4.90.0050.03712.02
5.4.80.0020.03912.01
5.4.70.0060.03412.01
5.4.60.0050.03612.01
5.4.50.0050.03712.01
5.4.40.0100.03311.99
5.4.30.0050.03511.99
5.4.20.0070.03311.99
5.4.10.0040.03511.99
5.4.00.0080.03211.48
5.3.290.0050.03912.80
5.3.280.0050.03812.70
5.3.270.0080.03612.72
5.3.260.0080.05512.72
5.3.250.0060.03712.72
5.3.240.0100.04212.72
5.3.230.0060.03712.71
5.3.220.0040.03812.68
5.3.210.0050.03812.68
5.3.200.0070.03412.68
5.3.190.0050.03712.68
5.3.180.0040.03712.68
5.3.170.0030.03812.67
5.3.160.0080.03412.67
5.3.150.0060.03612.67
5.3.140.0090.03812.66
5.3.130.0040.04012.65
5.3.120.0080.03812.66
5.3.110.0040.04012.66
5.3.100.0040.03812.12
5.3.90.0030.03812.10
5.3.80.0050.03612.09
5.3.70.0050.03612.09
5.3.60.0030.03812.07
5.3.50.0050.03612.02
5.3.40.0050.04312.02
5.3.30.0050.03511.98
5.3.20.0080.04011.76
5.3.10.0100.03411.73
5.3.00.0030.03711.73
5.2.170.0040.0299.22
5.2.160.0040.0299.22
5.2.150.0060.0309.22
5.2.140.0070.0369.21
5.2.130.0050.0379.17
5.2.120.0050.0329.17
5.2.110.0080.0369.18
5.2.100.0050.0329.17
5.2.90.0040.0329.17
5.2.80.0060.0369.17
5.2.70.0060.0289.17
5.2.60.0050.0309.13
5.2.50.0050.0289.09
5.2.40.0040.0289.07
5.2.30.0040.0299.04
5.2.20.0040.0299.03
5.2.10.0050.0298.94
5.2.00.0030.0328.80
5.1.60.0050.0248.09
5.1.50.0050.0238.08
5.1.40.0010.0278.06
5.1.30.0030.0268.41
5.1.20.0050.0258.43
5.1.10.0070.0298.16
5.1.00.0050.0308.16
5.0.50.0030.0226.64
5.0.40.0030.0276.50
5.0.30.0040.0296.31
5.0.20.0020.0196.28
5.0.10.0040.0246.25
5.0.00.0020.0366.25
4.4.90.0020.0174.78
4.4.80.0030.0144.75
4.4.70.0040.0214.75
4.4.60.0040.0184.76
4.4.50.0030.0184.77
4.4.40.0040.0234.71
4.4.30.0020.0164.76
4.4.20.0070.0204.84
4.4.10.0040.0194.85
4.4.00.0040.0224.76
4.3.110.0050.0144.67
4.3.100.0010.0154.67
4.3.90.0010.0174.63
4.3.80.0020.0284.58
4.3.70.0040.0154.63
4.3.60.0040.0134.63
4.3.50.0010.0174.63
4.3.40.0020.0254.53
4.3.30.0030.0143.30
4.3.20.0030.0213.28
4.3.10.0010.0203.24
4.3.00.0030.02015.97

preferences:
41.71 ms | 401 KiB | 5 Q