3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace one { function assert($assertion, $description) { echo __FUNCTION__, "\n"; assert($assertion, $description); } } namespace two { use function one\assert; assert('1 == true'); assert('true == false'); } namespace three { assert('1 == true'); assert('true == false'); }

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.00418.43
8.3.50.0260.00521.99
8.3.40.0070.00718.71
8.3.30.0080.00518.92
8.3.20.0040.00420.31
8.3.10.0040.00422.01
8.3.00.0040.00422.26
8.2.180.0070.00716.75
8.2.170.0100.00722.96
8.2.160.0040.01520.77
8.2.150.0030.00524.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0050.00317.50
8.2.110.0030.00622.07
8.2.100.0120.00019.57
8.2.90.0070.00018.97
8.2.80.0080.00019.53
8.2.70.0040.00417.38
8.2.60.0030.00517.68
8.2.50.0000.00918.07
8.2.40.0020.00518.03
8.2.30.0000.00817.94
8.2.20.0040.00417.55
8.2.10.0060.00317.55
8.2.00.0000.00717.43
8.1.280.0030.01225.92
8.1.270.0040.00421.99
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0100.00023.79
8.1.230.0090.00318.91
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0090.00017.23
8.1.190.0040.00417.27
8.1.180.0000.00918.10
8.1.170.0040.00418.55
8.1.160.0060.00321.95
8.1.150.0080.00018.55
8.1.140.0050.00217.32
8.1.130.0000.00717.77
8.1.120.0000.00717.38
8.1.110.0060.00317.34
8.1.100.0040.00417.25
8.1.90.0050.00217.18
8.1.80.0030.00317.22
8.1.70.0000.00817.30
8.1.60.0030.00617.46
8.1.50.0040.00417.30
8.1.40.0080.00017.39
8.1.30.0030.00617.53
8.1.20.0090.00017.39
8.1.10.0000.00717.43
8.1.00.0030.00517.32
8.0.300.0000.00718.77
8.0.290.0000.00816.93
8.0.280.0070.00018.24
8.0.270.0040.00417.13
8.0.260.0060.00016.63
8.0.250.0070.00016.85
8.0.240.0000.00716.80
8.0.230.0070.00016.79
8.0.220.0030.00316.81
8.0.210.0000.00716.84
8.0.200.0060.00016.88
8.0.190.0000.00716.91
8.0.180.0000.00716.75
8.0.170.0050.00316.72
8.0.160.0000.00716.81
8.0.150.0070.00316.81
8.0.140.0030.00516.77
8.0.130.0030.00313.19
8.0.120.0040.00416.75
8.0.110.0030.00316.80
8.0.100.0000.00716.80
8.0.90.0000.00716.89
8.0.80.0150.00016.88
8.0.70.0040.00416.86
8.0.60.0000.00716.87
8.0.50.0070.00016.71
8.0.30.0060.01716.82
8.0.20.0100.00817.40
8.0.10.0000.00716.93
8.0.00.0220.01416.62
7.4.330.0000.00615.00
7.4.320.0000.00616.39
7.4.300.0070.00016.50
7.4.290.0070.00016.44
7.4.280.0000.00616.46
7.4.270.0030.00316.56
7.4.260.0040.00416.44
7.4.250.0050.00316.41
7.4.240.0050.00216.49
7.4.230.0000.00716.45
7.4.220.0030.01416.59
7.4.210.0080.00616.53
7.4.200.0000.00716.66
7.4.190.0020.00516.70
7.4.160.0130.00916.29
7.4.150.0110.00717.40
7.4.140.0070.01017.86
7.4.130.0130.00616.59
7.4.120.0100.00816.36
7.4.110.0030.01416.52
7.4.100.0100.00616.27
7.4.90.0170.00016.76
7.4.80.0100.00719.39
7.4.70.0040.01216.54
7.4.60.0030.01416.36
7.4.50.0040.00416.50
7.4.40.0130.00322.77
7.4.30.0130.00316.56
7.4.00.0100.00315.16
7.3.330.0050.00013.17
7.3.320.0000.00613.07
7.3.310.0040.00416.34
7.3.300.0060.00016.17
7.3.290.0110.00316.33
7.3.280.0090.00516.27
7.3.270.0110.00617.40
7.3.260.0090.00816.22
7.3.250.0130.00816.59
7.3.240.0130.00916.38
7.3.230.0070.01016.39
7.3.210.0100.00716.33
7.3.200.0030.01819.39
7.3.190.0120.00916.30
7.3.180.0150.00716.37
7.3.170.0090.00616.32
7.3.160.0120.00316.46
7.3.120.0030.01214.77
7.2.330.0060.01216.50
7.2.320.0030.01516.34
7.2.310.0100.00716.61
7.2.300.0070.01716.60
7.2.290.0120.00916.35
7.2.60.0070.00716.85
7.2.00.0060.01019.20
7.1.200.0040.01115.61
7.1.100.0070.00417.80
7.1.70.0030.00616.76
7.1.60.0040.02119.82
7.1.50.0110.00716.95
7.1.00.0000.07722.44
7.0.200.0090.00316.84
7.0.140.0200.07722.01
7.0.100.0130.03320.72
7.0.90.0170.04721.15
7.0.80.0200.03021.09
7.0.70.0100.04321.13
7.0.60.0130.03320.73
7.0.50.0230.04021.53
7.0.40.0100.04020.15
7.0.30.0030.04720.15
7.0.20.0070.03320.15
7.0.10.0230.03720.07
7.0.00.0100.03720.10
5.6.280.0230.07023.04
5.6.250.0100.04722.66
5.6.240.0030.04321.32
5.6.230.0130.04321.60
5.6.220.0200.03722.75
5.6.210.0100.04322.70
5.6.200.0130.04723.08
5.6.190.0170.03723.16
5.6.180.0070.04023.28
5.6.170.0070.04323.27
5.6.160.0130.05723.17
5.6.150.0200.03022.98
5.6.140.0130.03723.22
5.6.130.0000.04021.75
5.6.120.0070.04022.07
5.6.110.0270.05322.41
5.6.100.0170.08723.18
5.6.90.0230.07723.15
5.6.80.0130.06321.20
5.6.70.0230.04322.54
5.6.60.0130.05322.61
5.6.50.0170.04722.55
5.6.40.0230.08722.54
5.6.30.0330.04322.63
5.6.20.0330.06722.58
5.6.10.0130.05721.19
5.6.00.0200.08322.64
5.5.380.0130.02320.38
5.5.370.0030.08020.37
5.5.360.0030.04320.38
5.5.350.0030.04020.45
5.5.340.0070.03720.64
5.5.330.0030.03720.82
5.5.320.0070.03720.81
5.5.310.0000.04020.93
5.5.300.0030.04020.83
5.5.290.0030.07320.91
5.5.280.0070.07720.80
5.5.270.0130.06320.82
5.5.260.0100.06720.91
5.5.250.0070.08020.56
5.5.240.0070.07320.19
5.5.230.0130.06720.20
5.5.220.0030.04720.27
5.5.210.0070.08320.16
5.5.200.0070.07720.19
5.5.190.0170.07320.19
5.5.180.0100.07020.28
5.5.160.0070.07320.13
5.5.150.0070.03720.27
5.5.140.0070.06720.13
5.5.130.0070.07320.27
5.5.120.0170.05720.19
5.5.110.0030.08720.20
5.5.100.0030.05020.13
5.5.90.0100.04020.01
5.5.80.0070.07720.07
5.5.70.0100.04720.07
5.5.60.0000.07719.96
5.5.50.0030.05020.01
5.5.40.0030.04020.12
5.5.30.0030.06720.00
5.5.20.0130.06320.06
5.5.10.0200.06320.05
5.5.00.0070.07719.98
5.4.450.0030.05719.57
5.4.440.0070.06719.51
5.4.430.0070.03719.48
5.4.420.0030.05719.36
5.4.410.0130.06319.34
5.4.400.0100.06719.19
5.4.390.0100.05319.21
5.4.380.0100.06719.14
5.4.370.0030.07718.95
5.4.360.0000.06718.91
5.4.350.0070.05019.13
5.4.340.0000.08319.19
5.4.320.0030.07719.17
5.4.310.0070.05319.05
5.4.300.0100.07319.18
5.4.290.0170.05719.12
5.4.280.0100.06319.21
5.4.270.0070.04319.03
5.4.260.0100.06718.95
5.4.250.0100.07719.03
5.4.240.0000.06718.87
5.4.230.0100.07318.94
5.4.220.0100.07319.22
5.4.210.0100.05719.12
5.4.200.0070.06319.23
5.4.190.0070.04319.02
5.4.180.0070.06019.04
5.4.170.0200.06319.13
5.4.160.0000.08018.88
5.4.150.0130.07018.88
5.4.140.0070.07716.42
5.4.130.0070.06316.24
5.4.120.0030.04016.45
5.4.110.0000.05016.33
5.4.100.0070.07016.51
5.4.90.0000.04716.55
5.4.80.0100.06016.38
5.4.70.0200.06016.34
5.4.60.0030.07316.37
5.4.50.0030.08016.31
5.4.40.0030.05316.48
5.4.30.0170.06016.36
5.4.20.0070.04016.41
5.4.10.0170.06016.30
5.4.00.0070.03715.77
5.3.290.0170.07014.64
5.3.280.0170.06014.73
5.3.270.0000.07714.72
5.3.260.0100.07014.70
5.3.250.0130.07314.61
5.3.240.0070.07014.63
5.3.230.0030.04314.65
5.3.220.0100.06714.60
5.3.210.0100.05014.49
5.3.200.0170.04714.50
5.3.190.0070.07714.49
5.3.180.0030.06014.54
5.3.170.0130.06314.61
5.3.160.0070.07314.69
5.3.150.0100.07314.63
5.3.140.0070.07314.53
5.3.130.0130.06014.58
5.3.120.0070.06014.53
5.3.110.0130.07714.54
5.3.100.0030.06314.02
5.3.90.0070.06314.00
5.3.80.0070.07314.15
5.3.70.0100.06314.13
5.3.60.0030.07314.05
5.3.50.0070.05714.07
5.3.40.0030.04013.87
5.3.30.0130.06313.84
5.3.20.0070.06713.70
5.3.10.0070.05013.59
5.3.00.0070.04013.75

preferences:
42.83 ms | 401 KiB | 5 Q