3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace test { class a { static function test () : string { return "abc"; } } } namespace bla { use test\a; class B { function test () : string { return a::test(); } } $b = new B(); var_dump($b->test()); }

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.00616.63
8.3.50.0040.01118.03
8.3.40.0120.00418.72
8.3.30.0120.00318.67
8.3.20.0000.00820.20
8.3.10.0080.00023.57
8.3.00.0000.00819.73
8.2.180.0070.00716.32
8.2.170.0040.01122.96
8.2.160.0200.00020.43
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0000.00919.27
8.2.120.0080.00026.35
8.2.110.0070.00319.12
8.2.100.0000.01217.72
8.2.90.0080.00019.22
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0080.00017.79
8.2.50.0030.00718.07
8.2.40.0000.00822.27
8.2.30.0030.00520.73
8.2.20.0000.00717.54
8.2.10.0050.00317.91
8.2.00.0000.00717.87
8.1.280.0070.01025.92
8.1.270.0110.00720.31
8.1.260.0080.00028.09
8.1.250.0050.00228.09
8.1.240.0000.00923.84
8.1.230.0090.00318.87
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0070.00017.23
8.1.180.0030.00518.10
8.1.170.0030.00518.57
8.1.160.0050.00220.62
8.1.150.0000.00718.76
8.1.140.0050.00519.57
8.1.130.0030.00317.63
8.1.120.0030.00317.42
8.1.110.0030.00317.45
8.1.100.0000.00817.27
8.1.90.0070.00317.36
8.1.80.0000.00717.41
8.1.70.0030.00317.25
8.1.60.0030.00517.62
8.1.50.0040.00417.53
8.1.40.0030.00517.58
8.1.30.0050.00317.60
8.1.20.0000.00817.66
8.1.10.0040.00417.57
8.1.00.0070.00017.43
8.0.300.0070.00018.77
8.0.290.0000.00716.58
8.0.280.0070.00018.43
8.0.270.0030.00317.12
8.0.260.0000.00717.24
8.0.250.0070.00016.85
8.0.240.0030.00316.93
8.0.230.0100.00016.90
8.0.220.0050.00216.85
8.0.210.0040.00416.87
8.0.200.0000.00716.88
8.0.190.0040.00716.87
8.0.180.0020.00516.89
8.0.170.0000.00716.82
8.0.160.0070.00016.81
8.0.150.0000.00716.71
8.0.140.0040.00416.62
8.0.130.0060.00013.30
8.0.120.0040.00416.75
8.0.110.0000.00716.88
8.0.100.0040.00416.69
8.0.90.0040.00416.73
8.0.80.0060.01016.79
8.0.70.0070.00016.81
8.0.60.0000.00716.95
8.0.50.0040.00416.85
8.0.30.0040.01416.94
8.0.20.0110.00617.40
8.0.10.0040.00416.98
8.0.00.0120.00816.86
7.4.330.0000.00516.77
7.4.320.0000.00616.34
7.4.300.0000.00616.40
7.4.290.0080.00016.57
7.4.280.0040.00416.45
7.4.270.0000.00616.51
7.4.260.0040.00416.49
7.4.250.0030.00516.45
7.4.240.0070.00016.56
7.4.230.0000.00716.44
7.4.220.0030.02016.60
7.4.210.0130.00616.47
7.4.200.0040.00416.59
7.4.160.0060.00916.46
7.4.150.0070.01317.40
7.4.140.0100.00817.86
7.4.130.0090.00816.50
7.4.120.0090.00816.65
7.4.110.0040.01316.62
7.4.100.0150.00616.44
7.4.90.0080.00816.41
7.4.80.0030.01319.39
7.4.70.0060.00916.44
7.4.60.0040.01216.39
7.4.50.0030.01216.11
7.4.40.0030.01416.48
7.4.30.0040.01216.48
7.4.10.0060.01014.88
7.4.00.0080.01015.11
7.3.330.0000.00513.30
7.3.320.0030.00313.24
7.3.310.0040.00316.13
7.3.300.0070.00016.18
7.3.290.0060.01116.20
7.3.280.0110.00616.22
7.3.270.0080.00817.40
7.3.260.0140.00316.21
7.3.250.0150.00716.13
7.3.240.0110.00616.27
7.3.230.0000.01716.39
7.3.210.0130.00316.45
7.3.200.0090.00616.33
7.3.190.0100.00716.18
7.3.180.0060.01516.43
7.3.170.0080.00816.27
7.3.160.0120.00316.18
7.3.130.0120.00814.74
7.3.120.0070.00914.83
7.3.110.0110.00414.72
7.3.100.0070.00614.70
7.3.90.0070.00614.90
7.3.80.0050.00914.88
7.3.70.0100.00314.62
7.3.60.0040.01114.70
7.3.50.0060.00714.46
7.3.40.0050.00914.60
7.3.30.0070.01014.74
7.3.20.0090.00516.48
7.3.10.0060.00616.55
7.3.00.0030.00916.62
7.2.330.0140.00416.50
7.2.320.0060.01216.61
7.2.310.0100.00716.69
7.2.300.0100.01316.67
7.2.290.0090.00916.54
7.2.260.0110.00715.14
7.2.250.0030.01014.81
7.2.240.0080.00815.07
7.2.230.0100.00614.83
7.2.220.0050.01014.84
7.2.210.0060.01014.94
7.2.200.0060.00914.93
7.2.190.0030.01015.10
7.2.180.0060.00714.85
7.2.170.0040.01315.02
7.2.160.0030.01214.95
7.2.150.0050.01016.75
7.2.140.0060.01016.88
7.2.130.0020.01416.73
7.2.120.0080.00516.66
7.2.110.0050.01016.76
7.2.100.0020.00916.67
7.2.90.0000.01516.91
7.2.80.0070.01016.77
7.2.70.0080.00816.91
7.2.60.0090.00916.76
7.2.50.0050.01016.85
7.2.40.0070.00916.92
7.2.30.0050.01416.79
7.2.20.0040.01116.84
7.2.10.0060.00616.88
7.2.00.0050.01217.52
7.1.330.0050.00915.62
7.1.320.0020.01015.66
7.1.310.0100.00315.60
7.1.300.0110.00315.72
7.1.290.0080.00515.64
7.1.280.0090.00515.83
7.1.270.0060.00515.60
7.1.260.0040.00715.76
7.1.250.0080.00615.60
7.1.240.0040.00815.54
7.1.230.0070.00715.48
7.1.220.0060.00615.78
7.1.210.0000.01315.72
7.1.200.0060.00815.76
7.1.190.0000.01415.71
7.1.180.0060.00915.53
7.1.170.0060.00915.52
7.1.160.0070.01115.79
7.1.150.0040.01115.79
7.1.140.0030.01015.56
7.1.130.0070.01015.70
7.1.120.0100.00315.66
7.1.110.0030.01015.55
7.1.100.0020.01016.77
7.1.90.0030.01215.66
7.1.80.0030.01015.55
7.1.70.0050.00716.42
7.1.60.0080.01017.53
7.1.50.0070.01016.16
7.1.40.0070.01015.64
7.1.30.0070.01315.74
7.1.20.0070.01115.63
7.1.10.0000.01015.74
7.1.00.0110.03318.98
7.0.330.0030.00715.17
7.0.320.0080.00315.18
7.0.310.0060.01015.07
7.0.300.0000.01215.39
7.0.290.0110.00715.16
7.0.280.0030.01015.52
7.0.270.0030.00915.23
7.0.260.0000.01315.38
7.0.250.0000.00815.33
7.0.240.0060.00315.11
7.0.230.0060.00915.40
7.0.220.0060.00315.36
7.0.210.0070.00715.44
7.0.200.0040.00415.97
7.0.190.0050.00515.28
7.0.180.0060.00915.48
7.0.170.0040.00915.28
7.0.160.0100.00715.38
7.0.150.0000.01315.29
7.0.140.0000.01415.00
7.0.130.0140.00015.20
7.0.120.0040.01415.41
7.0.110.0040.00415.32
7.0.100.0050.02517.66
7.0.90.0120.04217.75
7.0.80.0070.02917.56
7.0.70.0160.03917.71
7.0.60.0120.02017.59
7.0.50.0020.02918.63
7.0.40.0070.02016.74
7.0.30.0040.02516.69
7.0.20.0050.02716.70
7.0.10.0060.02016.64
7.0.00.0090.02016.75
5.6.400.0100.00714.36
5.6.390.0030.01014.41
5.6.380.0030.00914.10
5.6.370.0040.01113.84
5.6.360.0110.00714.08
5.6.350.0140.00414.15
5.6.340.0030.01114.06
5.6.330.0030.01214.15
5.6.320.0100.00314.02
5.6.310.0060.00613.88
5.6.300.0110.00314.26
5.6.290.0040.01114.27
5.6.280.0090.01717.50
5.6.270.0030.00514.24
5.6.260.0070.00314.07
5.6.250.0070.02517.29
5.6.240.0100.02517.27
5.6.230.0080.04717.37
5.6.220.0030.03917.41
5.6.210.0050.02517.43
5.6.200.0020.03717.70
5.6.190.0020.02417.60
5.6.180.0040.02417.73
5.6.170.0030.02517.59
5.6.160.0100.02717.69
5.6.150.0090.02217.57
5.6.140.0080.02217.72
5.6.130.0050.02717.58
5.6.120.0090.02517.64
5.6.110.0050.04117.46
5.6.100.0020.02517.65
5.6.90.0050.02817.55
5.6.80.0030.02517.09
5.6.70.0030.04617.25
5.6.60.0000.04517.27
5.6.50.0120.03817.42
5.6.40.0100.04017.21
5.6.30.0070.03617.21
5.6.20.0020.03117.27
5.6.10.0030.04217.25
5.6.00.0030.04017.26
5.5.380.0000.04517.27
5.5.370.0050.04317.11
5.5.360.0050.03017.19
5.5.350.0030.02617.08
5.5.340.0050.04017.33
5.5.330.0030.02517.30
5.5.320.0000.02817.48
5.5.310.0070.02717.22
5.5.300.0050.03317.35
5.5.290.0020.03617.51
5.5.280.0040.02417.29
5.5.270.0100.02217.49
5.5.260.0070.02517.42
5.5.250.0040.02617.24
5.5.240.0050.03816.99
5.5.230.0000.05017.02
5.5.220.0070.04617.05
5.5.210.0070.03816.99
5.5.200.0030.02917.11
5.5.190.0090.03817.27
5.5.180.0030.04617.17
5.5.170.0090.00614.00
5.5.160.0050.04617.01
5.5.150.0080.03217.20
5.5.140.0080.04317.18
5.5.130.0070.03917.16
5.5.120.0050.02817.00
5.5.110.0050.03417.01
5.5.100.0030.05317.15
5.5.90.0040.03817.07
5.5.80.0030.03117.16
5.5.70.0100.03417.00
5.5.60.0050.02516.93
5.5.50.0090.04016.98
5.5.40.0060.02217.01
5.5.30.0020.03016.97
5.5.20.0100.04216.96
5.5.10.0110.03017.04
5.5.00.0100.03716.90

preferences:
51.64 ms | 400 KiB | 5 Q