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]'; } } } namespace { define('Cat\\Foo', 'Cat\\Foobar'); 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.0070.00718.31
8.3.50.0180.00522.09
8.3.40.0110.00418.70
8.3.30.0070.00718.91
8.3.20.0070.00020.41
8.3.10.0040.00423.61
8.3.00.0080.00419.13
8.2.180.0120.00618.21
8.2.170.0070.00722.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0160.00326.16
8.2.120.0070.00022.06
8.2.110.0000.00922.04
8.2.100.0080.00817.72
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0070.00417.50
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0030.00518.09
8.2.30.0050.00317.87
8.2.20.0080.00017.56
8.2.10.0040.00418.01
8.2.00.0000.01017.64
8.1.280.0070.00725.92
8.1.270.0060.00323.97
8.1.260.0050.00326.35
8.1.250.0030.00628.09
8.1.240.0060.00323.64
8.1.230.0080.00419.05
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0000.00917.10
8.1.190.0000.00817.28
8.1.180.0030.00618.10
8.1.170.0080.00018.58
8.1.160.0070.00021.95
8.1.150.0040.00418.49
8.1.140.0030.00617.26
8.1.130.0030.00317.79
8.1.120.0040.00417.36
8.1.110.0050.00217.23
8.1.100.0040.00417.37
8.1.90.0000.00717.24
8.1.80.0050.00217.22
8.1.70.0030.00317.31
8.1.60.0000.00717.42
8.1.50.0000.00917.49
8.1.40.0030.00617.33
8.1.30.0040.00417.46
8.1.20.0040.00417.52
8.1.10.0050.00217.47
8.1.00.0030.00517.45
8.0.300.0030.00618.77
8.0.290.0000.00817.05
8.0.280.0030.00318.44
8.0.270.0030.00517.25
8.0.260.0030.00317.22
8.0.250.0030.00316.88
8.0.240.0060.00316.87
8.0.230.0000.00716.84
8.0.220.0020.00516.74
8.0.210.0070.00016.75
8.0.200.0030.00316.89
8.0.190.0030.00616.79
8.0.180.0030.00516.67
8.0.170.0040.00416.79
8.0.160.0070.00016.65
8.0.150.0040.00416.73
8.0.140.0040.00416.73
8.0.130.0000.00713.22
8.0.120.0000.00716.76
8.0.110.0050.00316.64
8.0.100.0000.00716.80
8.0.90.0000.00816.75
8.0.80.0040.01116.75
8.0.70.0040.00416.76
8.0.60.0040.00416.64
8.0.50.0080.00016.68
8.0.30.0120.00616.81
8.0.20.0120.00717.40
8.0.10.0000.00716.93
8.0.00.0080.01116.64
7.4.330.0030.00315.00
7.4.320.0030.00316.47
7.4.300.0000.00716.34
7.4.290.0050.00316.43
7.4.280.0040.00416.33
7.4.270.0040.00416.52
7.4.260.0000.00816.43
7.4.250.0030.00316.49
7.4.240.0070.00016.51
7.4.230.0070.00016.52
7.4.220.0100.00716.54
7.4.210.0130.00316.46
7.4.200.0070.00016.35
7.4.190.0000.00816.60
7.4.160.0060.00916.35
7.4.150.0030.01417.40
7.4.140.0090.00917.86
7.4.130.0110.00616.45
7.4.120.0060.01116.34
7.4.110.0150.00316.57
7.4.100.0140.01016.46
7.4.90.0100.00716.32
7.4.80.0090.01219.39
7.4.70.0090.00916.71
7.4.60.0100.00716.41
7.4.50.0030.00316.40
7.4.40.0030.01222.77
7.4.30.0030.01316.50
7.4.00.0070.01014.81
7.3.330.0000.00613.14
7.3.320.0050.00013.23
7.3.310.0040.00416.12
7.3.300.0000.00616.28
7.3.290.0060.00916.24
7.3.280.0080.01016.26
7.3.270.0040.01217.40
7.3.260.0270.02516.16
7.3.250.0130.00716.45
7.3.240.0030.01316.38
7.3.230.0070.01016.39
7.3.210.0030.01416.30
7.3.200.0130.00319.39
7.3.190.0180.00316.32
7.3.180.0100.00916.50
7.3.170.0100.00616.27
7.3.160.0110.00716.53
7.3.120.0040.01114.95
7.2.330.0060.01216.44
7.2.320.0040.01216.48
7.2.310.0060.01216.52
7.2.300.0070.01216.56
7.2.290.0090.01316.53
7.2.60.0150.00016.67
7.2.00.0000.01219.40
7.1.200.0000.01115.48
7.1.100.0030.00918.25
7.1.70.0030.00917.16
7.1.60.0040.01819.33
7.1.50.0000.01916.90
7.1.00.0070.07722.26
7.0.200.0030.00716.54
7.0.140.0130.05322.07
7.0.70.0000.09021.70
7.0.60.0030.08721.58
7.0.50.0100.05722.05
7.0.40.0070.08719.92
7.0.30.0100.03320.10
7.0.20.0030.04019.96
7.0.10.0070.06020.13
7.0.00.0070.07320.04
5.6.280.0100.06721.11
5.6.220.0000.07320.74
5.6.210.0070.07720.49
5.6.200.0000.08721.09
5.6.190.0070.05321.07
5.6.180.0070.07321.05
5.6.170.0030.05321.06
5.6.160.0000.08321.13
5.6.150.0100.07021.13
5.6.140.0030.04320.96
5.6.130.0030.04021.03
5.6.120.0100.03321.05
5.6.110.0070.03720.95
5.6.100.0000.04320.92
5.6.90.0100.07021.09
5.6.80.0030.06320.41
5.6.70.0030.07720.35
5.6.60.0100.04020.45
5.6.50.0030.08020.50
5.6.40.0030.03720.31
5.6.30.0030.04020.39
5.6.20.0070.04720.52
5.6.10.0030.03720.39
5.6.00.0000.04020.36
5.5.360.0000.07020.34
5.5.350.0100.07720.34
5.5.340.0030.08720.77
5.5.330.0070.04020.73
5.5.320.0070.05320.93
5.5.310.0070.04320.91
5.5.300.0070.03720.77
5.5.290.0000.04720.64
5.5.280.0030.04720.83
5.5.270.0000.04720.88
5.5.260.0000.04320.63
5.5.250.0000.04020.62
5.5.240.0000.07720.19
5.5.230.0070.04020.14
5.5.220.0030.04320.17
5.5.210.0100.06020.27
5.5.200.0000.04020.12
5.5.190.0070.03720.24
5.5.180.0000.04020.27
5.5.160.0030.06020.26
5.5.150.0070.03320.14
5.5.140.0030.03720.26
5.5.130.0000.04320.23
5.5.120.0000.04720.25
5.5.110.0030.03720.27
5.5.100.0030.04020.17
5.5.90.0030.04020.06
5.5.80.0030.03720.13
5.5.70.0000.04319.96
5.5.60.0030.03720.04
5.5.50.0070.03320.05
5.5.40.0030.05020.04
5.5.30.0030.06320.11
5.5.20.0070.03720.08
5.5.10.0030.03720.12
5.5.00.0000.04720.03
5.4.450.0070.03719.49
5.4.440.0030.04019.53
5.4.430.0070.03319.35
5.4.420.0000.04019.41
5.4.410.0000.03719.14
5.4.400.0000.04019.04
5.4.390.0030.06019.07
5.4.380.0100.06718.90
5.4.370.0070.05319.16
5.4.360.0030.04319.04
5.4.350.0030.03719.23
5.4.340.0070.04019.16
5.4.320.0000.04018.90
5.4.310.0000.04019.13
5.4.300.0030.06719.04
5.4.290.0000.04019.09
5.4.280.0000.04318.96
5.4.270.0070.05718.94
5.4.260.0000.04019.03
5.4.250.0000.04019.25
5.4.240.0030.03719.04
5.4.230.0000.04019.15
5.4.220.0030.03719.08
5.4.210.0030.03319.24
5.4.200.0000.03719.25
5.4.190.0100.03719.09
5.4.180.0030.03319.04
5.4.170.0030.07018.89
5.4.160.0000.04019.14
5.4.150.0000.04019.09
5.4.140.0030.03316.30
5.4.130.0000.03716.38
5.4.120.0070.03716.50
5.4.110.0030.03316.39
5.4.100.0000.03316.38
5.4.90.0030.05016.55
5.4.80.0030.07016.31
5.4.70.0000.07316.50
5.4.60.0000.07716.36
5.4.50.0000.06716.37
5.4.40.0000.07316.41
5.4.30.0000.06016.43
5.4.20.0000.04716.40
5.4.10.0070.05316.39
5.4.00.0100.06015.77
5.3.290.0030.03714.76
5.3.280.0030.03314.73
5.3.270.0000.05714.55
5.3.260.0070.04014.62
5.3.250.0030.03714.57
5.3.240.0000.03714.66
5.3.230.0000.03714.68
5.3.220.0000.03714.67
5.3.210.0000.04314.51
5.3.200.0000.04714.51
5.3.190.0000.06714.67
5.3.180.0030.07714.59
5.3.170.0030.04714.68
5.3.160.0070.07714.54
5.3.150.0030.08314.51
5.3.140.0070.04314.62
5.3.130.0030.08314.51
5.3.120.0030.08014.47
5.3.110.0000.05014.51
5.3.100.0030.05313.99
5.3.90.0030.07014.01
5.3.80.0030.05013.91
5.3.70.0030.07713.93
5.3.60.0000.05314.09
5.3.50.0100.07013.96
5.3.40.0030.05013.97
5.3.30.0030.05013.91
5.3.20.0000.07713.61
5.3.10.0000.07713.70
5.3.00.0070.06713.62
5.2.170.0030.06012.17
5.2.160.0030.05712.17
5.2.150.0100.05712.17
5.2.140.0030.04312.17
5.2.130.0000.06712.17
5.2.120.0000.05712.17
5.2.110.0000.06312.17
5.2.100.0000.06312.17
5.2.90.0100.05712.17
5.2.80.0000.06312.17
5.2.70.0000.06712.17
5.2.60.0030.06012.17
5.2.50.0030.06312.17
5.2.40.0070.06012.17
5.2.30.0000.05012.17
5.2.20.0030.04312.17
5.2.10.0100.03712.17
5.2.00.0000.04012.17
5.1.60.0100.04312.17
5.1.50.0070.04712.17
5.1.40.0000.05012.17
5.1.30.0030.05712.17
5.1.20.0000.05712.17
5.1.10.0030.05012.17
5.1.00.0070.04012.17
5.0.50.0000.02712.17
5.0.40.0000.04712.17
5.0.30.0070.06312.17
5.0.20.0030.04012.17
5.0.10.0030.04012.17
5.0.00.0030.03712.17
4.4.90.0000.03712.17
4.4.80.0030.02712.17
4.4.70.0000.04012.17
4.4.60.0000.03712.17
4.4.50.0030.02712.17
4.4.40.0000.04012.17
4.4.30.0030.03312.17
4.4.20.0070.02312.17
4.4.10.0000.03012.17
4.4.00.0000.05712.17
4.3.110.0100.01712.17
4.3.100.0000.03712.17
4.3.90.0030.02012.17
4.3.80.0030.05312.17
4.3.70.0030.02712.17
4.3.60.0030.02712.17
4.3.50.0000.03712.17
4.3.40.0000.05312.17
4.3.30.0000.03312.17
4.3.20.0000.03012.17
4.3.10.0070.02712.17
4.3.00.0030.03312.17

preferences:
39.81 ms | 401 KiB | 5 Q