3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class Foo { public function __construct() { function do_foo() { echo __FUNCTION__, "\n"; } function do_bar() { echo __FUNCTION__, "\n"; } } } function foobar() { echo __FUNCTION__, "\n"; } } namespace bar { use foo; foo\foobar(); new foo\Foo(); foo\do_foo(); }

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.00718.30
8.3.50.0100.00622.01
8.3.40.0150.00718.84
8.3.30.0110.00318.96
8.3.20.0000.00720.16
8.3.10.0050.00221.98
8.3.00.0070.00022.39
8.2.180.0000.01516.50
8.2.170.0080.01222.96
8.2.160.0090.00620.77
8.2.150.0040.00424.18
8.2.140.0100.00024.66
8.2.130.0140.00726.16
8.2.120.0040.00417.50
8.2.110.0110.00022.07
8.2.100.0040.00817.78
8.2.90.0000.00819.09
8.2.80.0050.00319.63
8.2.70.0030.00617.63
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0040.00418.03
8.2.30.0040.00418.06
8.2.20.0000.00817.64
8.2.10.0000.00819.41
8.2.00.0000.00817.50
8.1.280.0100.00325.92
8.1.270.0040.00422.06
8.1.260.0070.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00523.97
8.1.230.0110.00018.93
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0040.00417.23
8.1.190.0080.00017.28
8.1.180.0000.00818.10
8.1.170.0070.00318.66
8.1.160.0000.00821.98
8.1.150.0030.00518.53
8.1.140.0040.00417.27
8.1.130.0030.00317.78
8.1.120.0070.00017.40
8.1.110.0000.00717.36
8.1.100.0000.00717.29
8.1.90.0050.00317.37
8.1.80.0070.00017.44
8.1.70.0030.00517.36
8.1.60.0040.00417.55
8.1.50.0030.00617.46
8.1.40.0030.00617.48
8.1.30.0000.00917.52
8.1.20.0040.00417.62
8.1.10.0000.00817.53
8.1.00.0030.00617.38
8.0.300.0070.00018.77
8.0.290.0000.00717.05
8.0.280.0040.00418.36
8.0.270.0040.00417.31
8.0.260.0030.00316.81
8.0.250.0000.00716.96
8.0.240.0100.00017.02
8.0.230.0070.00016.91
8.0.220.0000.00616.82
8.0.210.0070.00016.80
8.0.200.0060.00316.91
8.0.190.0040.00416.79
8.0.180.0000.00716.74
8.0.170.0040.00416.86
8.0.160.0040.00416.74
8.0.150.0040.00316.78
8.0.140.0000.00816.71
8.0.130.0000.00613.24
8.0.120.0000.00816.76
8.0.110.0000.00716.89
8.0.100.0030.00516.85
8.0.90.0030.00316.73
8.0.80.0100.01016.73
8.0.70.0000.00716.83
8.0.60.0000.00716.82
8.0.50.0040.00416.65
8.0.30.0110.00816.98
8.0.20.0100.01217.40
8.0.10.0070.00016.83
8.0.00.0090.01016.74
7.4.330.0020.00215.14
7.4.320.0070.00016.42
7.4.300.0000.00616.54
7.4.290.0040.00416.47
7.4.280.0030.00516.45
7.4.270.0000.00716.55
7.4.260.0000.00716.50
7.4.250.0030.00316.46
7.4.240.0020.00616.47
7.4.230.0000.00716.25
7.4.220.0080.01216.51
7.4.210.0070.00916.52
7.4.200.0050.00216.65
7.4.190.0000.00716.40
7.4.160.0090.00616.46
7.4.150.0110.01117.40
7.4.140.0090.01117.86
7.4.130.0100.00816.49
7.4.120.0140.00516.52
7.4.110.0120.00416.43
7.4.100.0110.00816.35
7.4.90.0100.00716.57
7.4.80.0100.01019.39
7.4.70.0080.00816.62
7.4.60.0070.01016.38
7.4.50.0000.00816.52
7.4.40.0060.00622.77
7.4.30.0090.00616.46
7.4.00.0030.00715.21
7.3.330.0080.00013.11
7.3.320.0000.00613.11
7.3.310.0070.00016.33
7.3.300.0030.00316.34
7.3.290.0120.00316.33
7.3.280.0070.01016.26
7.3.270.0120.00617.40
7.3.260.0170.00016.36
7.3.250.0100.00716.40
7.3.240.0180.00016.26
7.3.230.0070.01016.54
7.3.210.0060.01116.22
7.3.200.0100.01219.39
7.3.190.0140.00716.30
7.3.180.0070.01116.51
7.3.170.0100.00616.27
7.3.160.0060.01116.19
7.3.120.0070.01014.89
7.2.330.0090.00916.48
7.2.320.0100.00916.67
7.2.310.0030.01316.30
7.2.300.0070.01016.32
7.2.290.0060.01116.25
7.2.00.0060.00319.00
7.1.100.0040.01118.02
7.1.70.0080.00016.94
7.1.60.0070.01719.82
7.1.50.0060.01516.87
7.1.00.0030.07722.33
7.0.200.0000.00816.64
7.0.140.0100.06322.18
7.0.110.0170.07719.99
7.0.100.0030.08720.03
7.0.90.0100.08019.84
7.0.80.0000.08719.98
7.0.70.0030.08719.84
7.0.60.0130.05019.91
7.0.50.0030.07720.39
7.0.40.0000.06720.02
7.0.30.0100.07320.05
7.0.20.0000.09319.96
7.0.10.0030.07019.94
7.0.00.0130.08020.18
5.6.280.0100.06721.14
5.6.260.0070.07020.60
5.6.250.0030.05020.89
5.6.240.0070.07720.70
5.6.230.0070.07020.66
5.6.220.0070.05320.62
5.6.210.0030.08720.64
5.6.200.0130.07721.09
5.6.190.0070.08320.95
5.6.180.0030.06321.20
5.6.170.0170.04021.06
5.6.160.0030.08721.03
5.6.150.0170.07321.09
5.6.140.0030.08721.04
5.6.130.0070.05021.10
5.6.120.0100.07021.27
5.6.110.0170.07021.14
5.6.100.0070.04721.02
5.6.90.0030.06021.13
5.6.80.0130.06720.34
5.6.70.0070.08320.53
5.6.60.0100.08020.36
5.6.50.0130.07020.45
5.6.40.0100.03320.43
5.6.30.0030.04020.51
5.6.20.0000.04320.50
5.6.10.0030.07020.31
5.6.00.0100.07720.28
5.5.380.0130.07720.38
5.5.370.0130.08020.57
5.5.360.0170.07020.51
5.5.350.0030.08720.16
5.5.340.0030.08720.99
5.5.330.0030.07320.89
5.5.320.0070.08020.79
5.5.310.0070.08021.00
5.5.300.0130.06720.99
5.5.290.0070.05020.91
5.5.280.0170.06320.90
5.5.270.0130.05020.81
5.5.260.0100.08320.96
5.5.250.0030.08720.80
5.5.240.0070.07320.13
5.5.230.0030.08320.29
5.5.220.0030.07720.32
5.5.210.0030.05020.25
5.5.200.0070.06020.39
5.5.190.0100.07320.30
5.5.180.0030.03720.14
5.5.160.0070.08020.09
5.5.150.0200.06320.32
5.5.140.0070.07720.19
5.5.130.0070.04720.37
5.5.120.0030.05020.05
5.5.110.0000.06320.05
5.5.100.0070.04020.27
5.5.90.0030.08020.05
5.5.80.0070.08020.20
5.5.70.0100.08019.98
5.5.60.0030.08720.16
5.5.50.0170.06020.09
5.5.40.0130.07020.14
5.5.30.0070.06720.18
5.5.20.0070.04720.14
5.5.10.0130.06320.12
5.5.00.0130.07320.11
5.4.450.0100.07719.67
5.4.440.0030.07319.48
5.4.430.0000.07019.34
5.4.420.0030.07319.46
5.4.410.0130.06719.38
5.4.400.0070.04719.18
5.4.390.0070.07018.98
5.4.380.0030.04019.19
5.4.370.0100.06719.00
5.4.360.0170.06719.04
5.4.350.0100.07319.18
5.4.340.0100.07719.09
5.4.320.0000.08319.18
5.4.310.0200.06319.16
5.4.300.0070.07019.24
5.4.290.0030.07719.14
5.4.280.0000.08319.00
5.4.270.0070.07719.18
5.4.260.0030.04019.31
5.4.250.0070.07319.00
5.4.240.0030.08018.98
5.4.230.0130.07019.33
5.4.220.0100.04319.18
5.4.210.0070.05319.17
5.4.200.0100.07019.16
5.4.190.0130.07019.23
5.4.180.0030.06019.00
5.4.170.0100.05019.15
5.4.160.0070.07319.24
5.4.150.0030.07319.01
5.4.140.0030.06716.33
5.4.130.0070.06716.48
5.4.120.0030.04316.34
5.4.110.0030.08016.47
5.4.100.0030.07716.41
5.4.90.0170.06016.71
5.4.80.0030.08016.59
5.4.70.0070.07316.30
5.4.60.0070.07316.52
5.4.50.0100.06016.54
5.4.40.0070.04316.59
5.4.30.0070.07716.43
5.4.20.0030.07316.38
5.4.10.0130.04716.43
5.4.00.0070.07715.95
5.3.290.0100.07014.52
5.3.280.0100.05014.69
5.3.270.0130.06714.84
5.3.260.0170.07014.61
5.3.250.0100.07314.62
5.3.240.0200.06014.62
5.3.230.0000.06714.73
5.3.220.0100.07014.65
5.3.210.0130.07014.60
5.3.200.0100.07014.58
5.3.190.0100.06314.59
5.3.180.0070.07714.54
5.3.170.0070.07014.61
5.3.160.0100.06014.60
5.3.150.0070.05314.54
5.3.140.0030.07714.70
5.3.130.0130.07014.55
5.3.120.0170.07014.54
5.3.110.0030.07014.78
5.3.100.0070.07714.04
5.3.90.0000.07314.03
5.3.80.0100.07313.89
5.3.70.0100.07014.04
5.3.60.0030.07314.14
5.3.50.0070.05013.95
5.3.40.0130.06013.98
5.3.30.0170.06013.93
5.3.20.0070.07013.84
5.3.10.0030.07013.79
5.3.00.0070.06713.71
5.2.170.0000.06012.19
5.2.160.0070.05712.19
5.2.150.0070.05712.19
5.2.140.0030.06712.19
5.2.130.0200.04712.19
5.2.120.0030.06012.19
5.2.110.0100.06012.19
5.2.100.0070.05712.19
5.2.90.0030.06312.19
5.2.80.0130.05712.19
5.2.70.0100.05712.19
5.2.60.0170.05012.19
5.2.50.0130.05012.19
5.2.40.0070.06012.19
5.2.30.0070.03312.19
5.2.20.0070.06012.19
5.2.10.0070.02312.19
5.2.00.0030.06012.19
5.1.60.0070.05312.19
5.1.50.0030.03312.19
5.1.40.0030.05312.19
5.1.30.0130.03312.19
5.1.20.0070.05312.19
5.1.10.0070.05012.19
5.1.00.0030.04312.19
5.0.50.0070.04012.19
5.0.40.0030.04012.19
5.0.30.0100.03312.19
5.0.20.0030.04712.19
5.0.10.0070.04012.19
5.0.00.0100.05712.19
4.4.90.0000.02012.19
4.4.80.0000.02312.19
4.4.70.0030.03312.19
4.4.60.0000.03712.19
4.4.50.0030.02012.19
4.4.40.0070.03312.19
4.4.30.0030.02312.19
4.4.20.0030.02712.19
4.4.10.0070.02712.19
4.4.00.0100.02312.19
4.3.110.0000.02012.19
4.3.100.0000.03712.19
4.3.90.0000.02712.19
4.3.80.0070.03312.19
4.3.70.0030.03312.19
4.3.60.0000.04012.19
4.3.50.0000.03712.19
4.3.40.0070.03312.19
4.3.30.0000.03712.19
4.3.20.0000.03012.19
4.3.10.0000.03712.19
4.3.00.0030.02712.19

preferences:
34.54 ms | 401 KiB | 5 Q