3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function doFoo(){ echo 'FOO'; } } class Bar { public function doBar(){ echo 'BAR'; } public function createFoo(){ return new Foo; } } $bar = new Bar; $bar->doBar(); $foo = $bar->createFoo(); $foo->doFoo(); unset($bar); // $bar->doBar(); $foo->doFoo();

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.0090.00918.43
8.3.50.0100.00822.11
8.3.40.0040.01118.45
8.3.30.0140.00719.08
8.3.20.0040.00420.33
8.3.10.0080.00023.66
8.3.00.0060.00317.80
8.2.180.0070.01116.32
8.2.170.0180.00022.96
8.2.160.0100.00320.53
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0090.00019.13
8.2.110.0060.00322.12
8.2.100.0050.00518.16
8.2.90.0070.00019.11
8.2.80.0040.00417.97
8.2.70.0090.00017.50
8.2.60.0040.00818.04
8.2.50.0030.00618.07
8.2.40.0050.00218.03
8.2.30.0080.00018.08
8.2.20.0080.00017.54
8.2.10.0070.00017.92
8.2.00.0000.00819.40
8.1.280.0040.01125.92
8.1.270.0080.00023.84
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00322.07
8.1.230.0070.00418.95
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.13
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0050.00318.55
8.1.160.0000.00721.87
8.1.150.0000.00718.47
8.1.140.0040.00417.30
8.1.130.0070.00017.86
8.1.120.0000.00717.39
8.1.110.0050.00517.44
8.1.100.0000.00717.37
8.1.90.0040.00317.45
8.1.80.0040.00417.34
8.1.70.0030.00317.25
8.1.60.0000.00817.45
8.1.50.0030.00617.48
8.1.40.0040.00417.51
8.1.30.0000.00817.61
8.1.20.0030.00617.69
8.1.10.0000.00717.46
8.1.00.0080.00017.57
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.36
8.0.270.0030.00317.26
8.0.260.0000.00617.26
8.0.250.0070.00016.90
8.0.240.0050.00216.87
8.0.230.0030.00316.82
8.0.220.0030.00316.85
8.0.210.0040.00416.74
8.0.200.0030.00316.80
8.0.190.0030.00316.92
8.0.180.0030.00616.89
8.0.170.0040.00416.85
8.0.160.0030.00316.89
8.0.150.0040.00416.73
8.0.140.0040.00416.85
8.0.130.0050.00313.30
8.0.120.0000.00816.76
8.0.110.0050.00216.74
8.0.100.0000.00916.86
8.0.90.0000.00816.88
8.0.80.0070.00716.88
8.0.70.0020.00516.83
8.0.60.0070.00016.68
8.0.50.0050.00216.94
8.0.30.0120.00617.22
8.0.20.0140.00417.40
8.0.10.0040.00416.97
8.0.00.0050.01516.59
7.4.330.0050.00015.02
7.4.320.0040.00416.37
7.4.300.0030.00316.45
7.4.290.0040.00416.52
7.4.280.0000.00816.65
7.4.270.0030.00316.42
7.4.260.0030.00516.48
7.4.250.0040.00416.57
7.4.240.0070.00016.47
7.4.230.0040.00416.48
7.4.220.0060.01116.63
7.4.210.0100.00316.56
7.4.200.0070.00016.35
7.4.160.0060.01016.61
7.4.150.0110.00817.40
7.4.140.0080.00917.86
7.4.130.0130.00616.59
7.4.120.0070.01016.47
7.4.110.0040.01216.64
7.4.100.0100.00716.60
7.4.90.0100.00716.64
7.4.80.0120.01219.39
7.4.70.0060.00916.58
7.4.60.0090.00916.66
7.4.50.0000.00816.43
7.4.40.0100.00716.54
7.4.30.0070.00816.23
7.4.00.0060.00914.93
7.3.330.0000.00513.00
7.3.320.0060.00013.19
7.3.310.0030.00316.20
7.3.300.0070.00016.21
7.3.290.0030.01116.20
7.3.280.0030.01416.20
7.3.270.0120.00917.40
7.3.260.0030.01416.34
7.3.250.0050.01116.31
7.3.240.0100.01016.50
7.3.230.0090.00616.39
7.3.210.0100.00716.45
7.3.200.0160.00019.39
7.3.190.0080.00816.49
7.3.180.0080.00816.25
7.3.170.0100.00716.29
7.3.160.0070.01616.38
7.3.120.0090.00914.47
7.2.330.0070.01016.34
7.2.320.0090.00916.65
7.2.310.0100.00616.62
7.2.300.0060.00916.46
7.2.290.0120.00816.59
7.2.60.0070.00316.86
7.2.00.0030.00619.26
7.1.200.0060.00315.75
7.1.100.0070.00717.77
7.1.70.0040.00416.89
7.1.60.0070.01719.70
7.1.50.0100.01316.88
7.1.00.0070.07322.37
7.0.200.0000.00716.46
7.0.140.0000.07321.95
7.0.60.0100.07720.00
7.0.50.0100.04717.84
7.0.40.0100.05720.40
7.0.30.0270.07720.30
7.0.20.0270.07020.24
7.0.10.0070.06720.19
7.0.00.0070.04020.15
5.6.280.0000.07720.79
5.6.210.0100.07720.73
5.6.200.0100.08318.13
5.6.190.0130.07720.46
5.6.180.4400.04020.39
5.6.170.0270.06720.46
5.6.160.0000.04320.47
5.6.150.0000.04318.18
5.6.140.0130.04018.25
5.6.130.0100.04718.18
5.6.120.0100.08020.97
5.6.110.0070.07020.98
5.6.100.0100.08021.13
5.6.90.0030.08021.10
5.6.80.0070.07020.42
5.6.70.4030.03320.37
5.5.350.0070.03020.43
5.5.340.0100.07318.09
5.5.330.0070.08320.27
5.5.320.0330.04320.34
5.5.310.0270.06320.25
5.5.300.0000.04318.06
5.5.290.0100.06018.06
5.5.280.0130.08020.80
5.5.270.0000.08020.89
5.5.260.0070.08320.89
5.5.250.0100.08720.45
5.5.240.0400.06720.19
5.4.450.0270.04743.77
5.4.440.1200.04019.47
5.4.430.0270.04037.17
5.4.420.0400.04736.67
5.4.410.0900.05719.34
5.4.400.0170.04733.62
5.4.390.0430.04333.62
5.4.380.0530.05318.73
5.4.370.0200.04718.73
5.4.360.0200.05718.73
5.4.350.0170.06018.63
5.4.340.0200.05318.52
5.4.320.0070.03512.50
5.4.310.0030.04112.50
5.4.300.0100.03812.50
5.4.290.0080.03612.50
5.4.280.0050.03512.39
5.4.270.0060.05012.39
5.4.260.0100.04912.40
5.4.250.0090.05012.40
5.4.240.0080.05012.39
5.4.230.0080.05112.39
5.4.220.0060.05312.39
5.4.210.0090.04812.39
5.4.200.0030.04612.39
5.4.190.0070.03412.39
5.4.180.0050.03512.38
5.4.170.0050.03712.40
5.4.160.0060.03512.39
5.4.150.0050.03612.38
5.4.140.0030.03912.07
5.4.130.0050.03512.06
5.4.120.0040.03712.02
5.4.110.0100.03412.02
5.4.100.0040.03612.01
5.4.90.0080.03712.01
5.4.80.0040.03912.02
5.4.70.0040.03612.01
5.4.60.0060.03512.01
5.4.50.0020.03912.01
5.4.40.0090.03112.00
5.4.30.0080.03311.99
5.4.20.0050.03612.00
5.4.10.0090.03711.99
5.4.00.0070.04011.48
5.3.290.0030.04112.80
5.3.280.0040.04012.71
5.3.270.0080.03712.72
5.3.260.0030.04312.72
5.3.250.0080.03712.71
5.3.240.0070.03812.72
5.3.230.0080.04112.71
5.3.220.0060.04512.68
5.3.210.0100.03612.68
5.3.200.0070.03512.68
5.3.190.0060.03612.68
5.3.180.0030.03912.67
5.3.170.0110.03712.67
5.3.160.0040.03712.67
5.3.150.0030.04012.68
5.3.140.0060.03812.66
5.3.130.0060.04112.66
5.3.120.0090.03812.65
5.3.110.0060.04012.66
5.3.100.0040.03912.13
5.3.90.0030.03912.11
5.3.80.0040.04912.09
5.3.70.0070.03612.09
5.3.60.0060.03512.08
5.3.50.0060.03612.03
5.3.40.0080.03712.03
5.3.30.0070.03311.98
5.3.20.0060.03511.77
5.3.10.0040.03711.73
5.3.00.0070.03411.72
5.2.170.0050.0309.22
5.2.160.0050.0289.23
5.2.150.0050.0319.22
5.2.140.0040.0319.22
5.2.130.0020.0319.18
5.2.120.0030.0329.18
5.2.110.0100.0249.18
5.2.100.0040.0319.18
5.2.90.0050.0289.18
5.2.80.0040.0309.18
5.2.70.0020.0329.18
5.2.60.0060.0299.13
5.2.50.0050.0309.10
5.2.40.0050.0299.08
5.2.30.0020.0329.05
5.2.20.0030.0309.04
5.2.10.0050.0278.95
5.2.00.0010.0328.81
5.1.60.0040.0248.10
5.1.50.0040.0248.09
5.1.40.0080.0208.07
5.1.30.0040.0258.41
5.1.20.0040.0268.45
5.1.10.0070.0238.17
5.1.00.0060.0238.17
5.0.50.0020.0306.64
5.0.40.0020.0216.50
5.0.30.0080.0266.32
5.0.20.0040.0196.28
5.0.10.0030.0206.26
5.0.00.0000.0346.25
4.4.90.0030.0154.78
4.4.80.0040.0154.76
4.4.70.0030.0214.76
4.4.60.0030.0164.76
4.4.50.0050.0214.77
4.4.40.0010.0274.71
4.4.30.0040.0144.76
4.4.20.0020.0214.84
4.4.10.0020.0164.85
4.4.00.0030.0244.76
4.3.110.0030.0164.67
4.3.100.0030.0154.67
4.3.90.0010.0164.63
4.3.80.0030.0234.58
4.3.70.0000.0244.63
4.3.60.0040.0204.63
4.3.50.0020.0224.63
4.3.40.0020.0314.54
4.3.30.0010.0173.30
4.3.20.0020.0153.28
4.3.10.0000.0183.24
4.3.00.0030.01733.62

preferences:
49.84 ms | 401 KiB | 5 Q