3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function Bar() { return new Baz(); } } class Baz { public function foo() { return $this; } public function baz() { return $this; } } Foo::foo()->baz();

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.0100.00318.56
8.3.50.0110.01021.97
8.3.40.0040.01118.84
8.3.30.0120.00318.96
8.3.20.0110.00420.30
8.3.10.0030.00620.53
8.3.00.0090.00019.25
8.2.180.0120.00918.42
8.2.170.0110.00422.96
8.2.160.0100.00320.43
8.2.150.0050.00324.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00322.26
8.2.110.0040.00420.59
8.2.100.0110.00017.91
8.2.90.0000.00818.84
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0000.00817.92
8.2.50.0030.00618.07
8.2.40.0060.00318.03
8.2.30.0000.00719.24
8.2.20.0040.00417.77
8.2.10.0040.00417.98
8.2.00.0030.00617.54
8.1.280.0120.00325.92
8.1.270.0050.00323.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00423.92
8.1.230.0060.00619.10
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.11
8.1.180.0050.00218.10
8.1.170.0000.00818.26
8.1.160.0000.00721.85
8.1.150.0040.00418.62
8.1.140.0000.00817.41
8.1.130.0000.00717.66
8.1.120.0000.00717.36
8.1.110.0000.00717.28
8.1.100.0040.00417.21
8.1.90.0050.00217.36
8.1.80.0050.00317.20
8.1.70.0030.00317.32
8.1.60.0050.00317.50
8.1.50.0040.00417.35
8.1.40.0000.00817.42
8.1.30.0080.00017.44
8.1.20.0070.00017.59
8.1.10.0000.00717.50
8.1.00.0000.00717.45
8.0.300.0060.00318.77
8.0.290.0080.00016.75
8.0.280.0030.00318.36
8.0.270.0030.00517.17
8.0.260.0030.00317.25
8.0.250.0060.00016.95
8.0.240.0050.00316.95
8.0.230.0030.00316.91
8.0.220.0070.00016.87
8.0.210.0030.00316.88
8.0.200.0000.00616.96
8.0.190.0050.00316.80
8.0.180.0000.00716.89
8.0.170.0040.00416.86
8.0.160.0040.00416.95
8.0.150.0030.00316.86
8.0.140.0030.01016.74
8.0.130.0030.00313.29
8.0.120.0040.00416.78
8.0.110.0040.00416.95
8.0.100.0050.00316.72
8.0.90.0040.00416.86
8.0.80.0110.00716.86
8.0.70.0000.00716.73
8.0.60.0040.00416.87
8.0.50.0070.00016.88
8.0.30.0070.01116.78
8.0.20.0060.01317.40
8.0.10.0070.00016.93
8.0.00.0110.00716.65
7.4.330.0000.00515.02
7.4.320.0030.00316.29
7.4.300.0040.00416.48
7.4.290.0030.00316.37
7.4.280.0000.01016.56
7.4.270.0000.00816.54
7.4.260.0070.00016.47
7.4.250.0050.00316.46
7.4.240.0030.00416.46
7.4.230.0030.00316.45
7.4.220.0000.01816.61
7.4.210.0120.00916.59
7.4.200.0000.00716.22
7.4.160.0070.01016.41
7.4.150.0130.00617.40
7.4.140.0090.00817.86
7.4.130.0110.00516.47
7.4.120.0110.00516.44
7.4.110.0110.00516.54
7.4.100.0080.00816.64
7.4.90.0110.00716.35
7.4.80.0070.01018.80
7.4.70.0150.00716.50
7.4.60.0120.00816.45
7.4.50.0000.00816.19
7.4.40.0110.00516.61
7.4.30.0080.00916.26
7.4.00.0060.01014.96
7.3.330.0030.00313.15
7.3.320.0070.00013.09
7.3.310.0030.00316.34
7.3.300.0070.00016.28
7.3.290.0060.00916.32
7.3.280.0070.00716.32
7.3.270.0150.00417.40
7.3.260.0050.01116.29
7.3.250.0110.00716.40
7.3.240.0140.00316.41
7.3.230.0060.00916.39
7.3.210.0110.00716.28
7.3.200.0090.00619.39
7.3.190.0100.01016.52
7.3.180.0080.00816.29
7.3.170.0130.00316.39
7.3.160.0090.00616.50
7.2.330.0060.01216.31
7.2.320.0110.00716.60
7.2.310.0110.00716.19
7.2.300.0060.00916.50
7.2.290.0110.00516.64
7.2.60.0070.00716.52
7.2.00.0030.01018.92
7.1.200.0110.00315.46
7.1.100.0100.00318.20
7.1.70.0000.00816.73
7.1.60.0140.01119.32
7.1.50.0070.01116.71
7.1.00.0000.08022.44
7.0.200.0090.00016.64
7.0.140.0130.06322.00
7.0.60.0070.08320.02
7.0.50.0070.03717.83
7.0.40.0130.07719.96
7.0.30.0330.07320.20
7.0.20.0300.07720.09
7.0.10.0000.09320.22
7.0.00.0170.07320.25
5.6.280.0000.07720.87
5.6.210.0000.08320.52
5.6.200.0130.06318.19
5.6.190.0030.04320.77
5.6.180.3500.03720.39
5.6.170.0300.06720.45
5.6.160.0000.06720.61
5.6.150.0070.04018.25
5.6.140.0070.09018.17
5.6.130.0070.05318.14
5.6.120.0030.05021.01
5.6.110.0030.04320.99
5.6.100.0030.06021.02
5.6.90.0100.07721.03
5.6.80.0070.08320.40
5.6.70.0130.04320.41
5.5.350.0370.07020.43
5.5.340.0030.06318.03
5.5.330.0070.08020.47
5.5.320.0270.04320.31
5.5.310.0200.05720.36
5.5.300.0030.05318.01
5.5.290.0030.08717.95
5.5.280.0170.07020.89
5.5.270.0130.07720.89
5.5.260.0200.07320.97
5.5.250.0030.07320.59
5.5.240.0200.03320.16
5.4.450.0800.05719.61
5.4.440.1000.05319.47
5.4.430.0870.06019.29
5.4.420.0800.05719.44
5.4.410.0770.05019.33
5.4.400.0900.05019.38
5.4.390.1000.06319.06
5.4.380.0330.05018.57
5.4.370.0300.07318.78
5.4.360.0230.05318.52
5.4.350.0370.07018.70
5.4.340.0300.05718.79
5.4.320.0090.03912.50
5.4.310.0060.03912.50
5.4.300.0070.03812.50
5.4.290.0040.04212.50
5.4.280.0080.04112.40
5.4.270.0070.04712.40
5.4.260.0070.03812.40
5.4.250.0070.04212.40
5.4.240.0060.04512.40
5.4.230.0040.04412.39
5.4.220.0090.04312.39
5.4.210.0080.04212.39
5.4.200.0090.04412.39
5.4.190.0040.03912.39
5.4.180.0090.04312.38
5.4.170.0090.04012.40
5.4.160.0070.03712.39
5.4.150.0040.03712.39
5.4.140.0050.03712.07
5.4.130.0090.03412.06
5.4.120.0050.03612.02
5.4.110.0090.03112.02
5.4.100.0060.03812.02
5.4.90.0040.04512.02
5.4.80.0030.04412.02
5.4.70.0050.03912.01
5.4.60.0060.03712.02
5.4.50.0060.04612.02
5.4.40.0090.03412.00
5.4.30.0040.03512.00
5.4.20.0020.03712.00
5.4.10.0080.03512.00
5.4.00.0050.03611.49
5.3.290.0050.04512.80
5.3.280.0060.04112.71
5.3.270.0090.04012.73
5.3.260.0080.03912.72
5.3.250.0070.04412.72
5.3.240.0050.04312.72
5.3.230.0070.04612.71
5.3.220.0050.03712.68
5.3.210.0060.04012.68
5.3.200.0070.03612.68
5.3.190.0070.03712.68
5.3.180.0090.03712.68
5.3.170.0050.03612.67
5.3.160.0050.03512.68
5.3.150.0050.04012.67
5.3.140.0060.04412.66
5.3.130.0090.04112.66
5.3.120.0070.03912.66
5.3.110.0060.04012.66
5.3.100.0070.03512.13
5.3.90.0040.03712.11
5.3.80.0060.03512.10
5.3.70.0040.03712.10
5.3.60.0040.03612.08
5.3.50.0050.04212.03
5.3.40.0040.04112.03
5.3.30.0020.03911.99
5.3.20.0050.03611.77
5.3.10.0070.04511.73
5.3.00.0050.03711.72
5.2.170.0050.0359.23
5.2.160.0050.0309.22
5.2.150.0020.0349.22
5.2.140.0040.0309.22
5.2.130.0070.0329.18
5.2.120.0080.0269.18
5.2.110.0050.0289.19
5.2.100.0050.0319.18
5.2.90.0060.0349.18
5.2.80.0070.0299.18
5.2.70.0090.0329.18
5.2.60.0060.0309.13
5.2.50.0050.0289.10
5.2.40.0050.0279.08
5.2.30.0070.0269.05
5.2.20.0050.0279.04
5.2.10.0050.0308.95
5.2.00.0050.0298.80
5.1.60.0040.0258.10
5.1.50.0060.0238.10
5.1.40.0060.0258.07
5.1.30.0050.0258.42
5.1.20.0040.0278.44
5.1.10.0020.0288.17
5.1.00.0060.0328.17
5.0.50.0050.0266.64
5.0.40.0030.0216.51
5.0.30.0020.0326.32
5.0.20.0020.0226.28
5.0.10.0030.0206.27
5.0.00.0030.0306.25
4.4.90.0030.0154.78
4.4.80.0040.0144.75
4.4.70.0030.0154.75
4.4.60.0030.0174.76
4.4.50.0040.0174.77
4.4.40.0020.0294.71
4.4.30.0030.0174.75
4.4.20.0050.0174.84
4.4.10.0030.0174.84
4.4.00.0050.0254.76
4.3.110.0050.0234.67
4.3.100.0040.0204.66
4.3.90.0040.0174.63
4.3.80.0030.0274.58
4.3.70.0040.0124.63
4.3.60.0040.0144.63
4.3.50.0030.0174.62
4.3.40.0040.0264.54
4.3.30.0030.0143.30
4.3.20.0030.0153.28
4.3.10.0020.0253.23
4.3.00.0070.0236.98

preferences:
54.07 ms | 401 KiB | 5 Q