3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Cat{ class Foobar { public function __construct() { echo '[Foobar]'; } } class Foo { public function __construct() { echo '[Foo]'; } } define('Cat\\Foo', 'Cat\\Foobar'); } namespace { new Cat\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.0170.00018.40
8.3.50.0130.00722.11
8.3.40.0000.01418.67
8.3.30.0120.00318.59
8.3.20.0080.00018.61
8.3.10.0040.00420.92
8.3.00.0000.00721.89
8.2.180.0120.00916.38
8.2.170.0000.01422.96
8.2.160.0100.00320.25
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0030.00526.16
8.2.120.0040.00420.98
8.2.110.0090.00020.93
8.2.100.0090.00317.78
8.2.90.0050.00319.14
8.2.80.0000.00817.97
8.2.70.0080.00317.38
8.2.60.0070.00017.80
8.2.50.0050.00318.07
8.2.40.0040.00418.22
8.2.30.0040.00419.78
8.2.20.0030.00517.47
8.2.10.0050.00317.43
8.2.00.0070.00417.46
8.1.280.0120.00625.92
8.1.270.0070.00023.99
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0090.00022.32
8.1.230.0060.00620.88
8.1.220.0000.00818.77
8.1.210.0060.00318.77
8.1.200.0000.00917.10
8.1.190.0040.00417.40
8.1.180.0000.00818.10
8.1.170.0060.00318.52
8.1.160.0050.00218.68
8.1.150.0000.00718.42
8.1.140.0070.00017.38
8.1.130.0000.00717.76
8.1.120.0040.00317.22
8.1.110.0040.00417.33
8.1.100.0000.00717.37
8.1.90.0000.00717.22
8.1.80.0040.00417.35
8.1.70.0000.00717.30
8.1.60.0050.00317.45
8.1.50.0060.00317.45
8.1.40.0030.00517.48
8.1.30.0080.00017.45
8.1.20.0030.00517.46
8.1.10.0000.00717.45
8.1.00.0040.00417.45
8.0.300.0040.00420.02
8.0.290.0040.00416.75
8.0.280.0050.00218.46
8.0.270.0070.00017.17
8.0.260.0030.00316.82
8.0.250.0030.00316.92
8.0.240.0050.00316.89
8.0.230.0000.00716.85
8.0.220.0040.00416.79
8.0.210.0000.00716.66
8.0.200.0070.00016.71
8.0.190.0000.00716.78
8.0.180.0030.00516.78
8.0.170.0040.00416.68
8.0.160.0080.00016.88
8.0.150.0070.00016.75
8.0.140.0040.00416.66
8.0.130.0000.00613.13
8.0.120.0020.00516.72
8.0.110.0060.00316.88
8.0.100.0040.00416.76
8.0.90.0030.00616.64
8.0.80.0060.01416.82
8.0.70.0000.00716.61
8.0.60.0040.00416.80
8.0.50.0030.00416.72
8.0.30.0130.00917.00
8.0.20.0090.00917.40
8.0.10.0000.00716.84
8.0.00.0070.01116.68
7.4.330.0060.00014.71
7.4.320.0030.00316.44
7.4.300.0030.00316.42
7.4.290.0000.00716.51
7.4.280.0030.00516.44
7.4.270.0030.00316.46
7.4.260.0050.00013.23
7.4.250.0050.00316.39
7.4.240.0050.00216.45
7.4.230.0030.00316.55
7.4.220.0090.00916.48
7.4.210.0050.01016.47
7.4.200.0070.00016.54
7.4.190.0000.00816.49
7.4.160.0170.00016.26
7.4.150.0110.00617.40
7.4.140.0080.01017.86
7.4.130.0050.01116.37
7.4.120.0050.01316.40
7.4.110.0140.00716.62
7.4.100.0100.00716.33
7.4.90.0130.00316.47
7.4.80.0090.00919.37
7.4.70.0040.01216.56
7.4.60.0120.00416.36
7.4.50.0030.00616.34
7.4.40.0100.00622.27
7.4.30.0090.01516.40
7.4.00.0060.00615.11
7.3.330.0050.00013.05
7.3.320.0000.00613.25
7.3.310.0000.00816.34
7.3.300.0030.00316.09
7.3.290.0060.01316.25
7.3.280.0050.01316.23
7.3.270.0110.00617.40
7.3.260.0130.00518.24
7.3.250.0120.00816.51
7.3.240.0130.00316.30
7.3.230.0130.00316.50
7.3.210.0100.01316.49
7.3.200.0030.02019.39
7.3.190.0110.01116.17
7.3.180.0120.00916.22
7.3.170.0150.00016.27
7.3.160.0140.00716.32
7.3.120.0070.01014.45
7.3.10.0080.00616.34
7.3.00.0100.00316.62
7.2.330.0070.01116.66
7.2.320.0130.01016.30
7.2.310.0060.01616.66
7.2.300.0150.00416.36
7.2.290.0110.01116.47
7.2.130.0060.00616.58
7.2.120.0130.00316.50
7.2.110.0030.01016.67
7.2.100.0030.01216.75
7.2.90.0100.00716.96
7.2.80.0070.00716.80
7.2.70.0090.00316.80
7.2.60.0090.00916.83
7.2.50.0040.00816.74
7.2.40.0100.01016.61
7.2.30.0140.00316.70
7.2.20.0170.00016.85
7.2.10.0090.00616.73
7.2.00.0040.00918.11
7.1.250.0090.00315.81
7.1.200.0070.00715.51
7.1.100.0150.01016.42
7.1.70.0030.00317.03
7.1.60.0110.01419.40
7.1.50.0150.00916.82
7.1.00.0000.07022.46
7.0.200.0070.00316.65
7.0.140.0030.07022.15
7.0.70.0000.08721.61
7.0.60.0000.07721.61
7.0.50.0070.06022.09
7.0.40.0000.07720.10
7.0.30.0030.08719.96
7.0.20.0270.06720.13
7.0.10.0100.07720.18
7.0.00.0130.07020.02
5.6.280.0100.06721.02
5.6.220.0000.08020.45
5.6.210.0000.08720.71
5.6.200.0030.06721.14
5.6.190.0070.06321.02
5.6.180.0130.07720.94
5.6.170.0000.07020.96
5.6.160.0170.07721.05
5.6.150.0070.06720.96
5.6.140.0030.08321.09
5.6.130.0100.05721.08
5.6.120.0070.05721.04
5.6.110.0000.07021.16
5.6.100.0030.04720.95
5.6.90.0070.08020.93
5.6.80.0030.07720.39
5.6.70.0100.06020.45
5.6.60.0000.04320.39
5.6.50.0000.06320.32
5.6.40.0100.03320.25
5.6.30.0070.03720.29
5.6.20.0030.04020.39
5.6.10.0000.04720.40
5.6.00.0070.08320.36
5.5.360.0130.08320.43
5.5.350.0030.08320.31
5.5.340.0030.06320.87
5.5.330.0030.06720.76
5.5.320.0130.07320.90
5.5.310.0070.05320.83
5.5.300.0000.08020.83
5.5.290.0070.07020.87
5.5.280.0070.07720.81
5.5.270.0100.05020.92
5.5.260.0030.05720.86
5.5.250.0030.09020.68
5.5.240.0000.08020.17
5.5.230.0030.05320.21
5.5.220.0000.05020.26
5.5.210.0070.04720.02
5.5.200.0100.07320.15
5.5.190.0030.04320.13
5.5.180.0030.04320.11
5.5.160.0030.05720.00
5.5.150.0000.04720.15
5.5.140.0000.04020.22
5.5.130.0070.06020.12
5.5.120.0000.04320.25
5.5.110.0070.06020.21
5.5.100.0100.03320.08
5.5.90.0070.07720.05
5.5.80.0000.05020.16
5.5.70.0030.05020.09
5.5.60.0000.05020.03
5.5.50.0030.05720.14
5.5.40.0100.06720.14
5.5.30.0100.07320.11
5.5.20.0030.08020.09
5.5.10.0000.07320.10
5.5.00.0070.07320.03
5.4.450.0100.07019.27
5.4.440.0030.07719.37
5.4.430.0070.08319.48
5.4.420.0100.04319.21
5.4.410.0000.04719.41
5.4.400.0030.05719.16
5.4.390.0000.07719.23
5.4.380.0030.06719.03
5.4.370.0000.07318.85
5.4.360.0030.05719.11
5.4.350.0000.07719.03
5.4.340.0030.07719.12
5.4.320.0070.07319.09
5.4.310.0030.05719.02
5.4.300.0000.07719.18
5.4.290.0000.04019.09
5.4.280.0070.07718.94
5.4.270.0000.04019.21
5.4.260.0000.04318.94
5.4.250.0030.03719.20
5.4.240.0030.07318.88
5.4.230.0030.05019.21
5.4.220.0070.07319.11
5.4.210.0070.06319.02
5.4.200.0000.06318.98
5.4.190.0070.06719.20
5.4.180.0070.06318.85
5.4.170.0000.06719.05
5.4.160.0030.05718.88
5.4.150.0070.03719.07
5.4.140.0000.04716.33
5.4.130.0030.03316.43
5.4.120.0000.03716.32
5.4.110.0000.03716.32
5.4.100.0100.05316.59
5.4.90.0000.04016.41
5.4.80.0000.03716.43
5.4.70.0000.03716.38
5.4.60.0000.06016.30
5.4.50.0070.05716.46
5.4.40.0030.05016.50
5.4.30.0000.07316.45
5.4.20.0030.05016.40
5.4.10.0000.04316.31
5.4.00.0030.06015.79
5.3.290.0070.06714.64
5.3.280.0000.06314.57
5.3.270.0000.07714.60
5.3.260.0000.07314.70
5.3.250.0030.06014.54
5.3.240.0000.05314.63
5.3.230.0000.03714.60
5.3.220.0030.03314.67
5.3.210.0000.04014.68
5.3.200.0030.03314.53
5.3.190.0030.07714.59
5.3.180.0000.04014.53
5.3.170.0030.04014.62
5.3.160.0030.07014.57
5.3.150.0000.04314.65
5.3.140.0030.07014.61
5.3.130.0030.08314.54
5.3.120.0030.06014.52
5.3.110.0070.04714.61
5.3.100.0000.06314.07
5.3.90.0030.04714.02
5.3.80.0030.06714.05
5.3.70.0030.04014.16
5.3.60.0000.04014.03
5.3.50.0070.06313.93
5.3.40.0030.07014.05
5.3.30.0070.05313.84
5.3.20.0070.07313.59
5.3.10.0130.06013.76
5.3.00.0000.05013.78
5.2.170.0030.05711.18
5.2.160.0070.04011.00
5.2.150.0000.04011.13
5.2.140.0030.06311.13
5.2.130.0030.04310.91
5.2.120.0070.05711.17
5.2.110.0030.03711.01
5.2.100.0030.03011.09
5.2.90.0030.06011.06
5.2.80.0070.04011.09
5.2.70.0000.04310.91
5.2.60.0030.03011.04
5.2.50.0100.05711.02
5.2.40.0000.03011.04
5.2.30.0000.06310.95
5.2.20.0030.05310.84
5.2.10.0000.05010.86
5.2.00.0030.06010.84
5.1.60.0000.04310.84
5.1.50.0030.05310.84
5.1.40.0030.04710.84
5.1.30.0070.05710.84
5.1.20.0100.03310.84
5.1.10.0000.04710.84
5.1.00.0000.04010.84
5.0.50.0000.05010.84
5.0.40.0000.04710.84
5.0.30.0000.05010.84
5.0.20.0000.04010.84
5.0.10.0000.04310.84
5.0.00.0030.05010.84
4.4.90.0030.01710.84
4.4.80.0000.03710.84
4.4.70.0030.03710.84
4.4.60.0000.02010.84
4.4.50.0030.03710.84
4.4.40.0000.04310.84
4.4.30.0030.03310.84
4.4.20.0030.03710.84
4.4.10.0000.02310.84
4.4.00.0000.05310.84
4.3.110.0070.02710.84
4.3.100.0000.03710.84
4.3.90.0030.02010.84
4.3.80.0000.05010.84
4.3.70.0070.03010.84
4.3.60.0000.03010.84
4.3.50.0070.02310.84
4.3.40.0030.04710.84
4.3.30.0030.03310.84
4.3.20.0000.03010.84
4.3.10.0070.03310.84
4.3.00.0000.02310.84

preferences:
45.07 ms | 401 KiB | 5 Q