3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class T {} } namespace { $hello = 42; class Test { public function first(string $str): Closure { return function() use ($str):int { return strlen($str); }; } public function second(int $i): int { } } }

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.0040.01116.38
8.3.50.0060.01221.07
8.3.40.0040.01118.59
8.3.30.0080.00618.71
8.3.20.0000.00720.25
8.3.10.0070.00021.73
8.3.00.0080.00023.73
8.2.180.0170.00318.16
8.2.170.0030.01022.96
8.2.160.0070.00720.48
8.2.150.0060.00324.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0030.00519.23
8.2.110.0030.00622.13
8.2.100.0110.00017.80
8.2.90.0000.00819.22
8.2.80.0040.00417.97
8.2.70.0090.00017.38
8.2.60.0050.00317.68
8.2.50.0030.00918.07
8.2.40.0070.00022.37
8.2.30.0040.00420.57
8.2.20.0040.00417.73
8.2.10.0040.00417.91
8.2.00.0030.00517.95
8.1.280.0090.00625.92
8.1.270.0060.01220.38
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00722.03
8.1.230.0070.00419.10
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0060.00316.98
8.1.180.0070.00018.10
8.1.170.0080.00018.37
8.1.160.0000.00720.70
8.1.150.0030.00318.87
8.1.140.0050.00319.55
8.1.130.0000.00717.64
8.1.120.0000.00717.46
8.1.110.0030.00517.38
8.1.100.0050.00317.34
8.1.90.0050.00217.43
8.1.80.0000.00817.41
8.1.70.0000.00717.34
8.1.60.0080.00017.48
8.1.50.0090.00017.45
8.1.40.0090.00017.46
8.1.30.0000.00917.57
8.1.20.0000.00817.58
8.1.10.0030.00617.53
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.29
8.0.270.0040.00417.13
8.0.260.0000.00717.21
8.0.250.0000.00716.95
8.0.240.0040.00416.88
8.0.230.0040.00416.91
8.0.220.0000.00816.86
8.0.210.0030.00316.86
8.0.200.0000.00616.88
8.0.190.0030.00716.79
8.0.180.0070.00016.84
8.0.170.0040.00416.81
8.0.160.0040.00416.82
8.0.150.0030.00316.76
8.0.140.0030.00316.81
8.0.130.0060.00013.25
8.0.120.0000.00716.68
8.0.110.0000.00816.86
8.0.100.0050.00316.83
8.0.90.0030.00516.68
8.0.80.0110.00316.77
8.0.70.0080.00016.86
8.0.60.0000.00816.71
8.0.50.0000.00716.73
8.0.30.0060.01016.77
8.0.20.0150.00417.40
8.0.10.0040.00416.82
8.0.00.0080.01116.66
7.4.330.0000.00616.83
7.4.320.0050.00216.46
7.4.300.0000.00616.57
7.4.290.0040.00416.50
7.4.280.0000.00816.45
7.4.270.0030.00316.44
7.4.260.0000.00816.50
7.4.250.0000.00716.36
7.4.240.0000.00716.43
7.4.230.0030.00316.32
7.4.220.0080.00816.48
7.4.210.0060.00916.45
7.4.200.0030.00316.34
7.4.160.0040.01216.57
7.4.150.0100.00717.40
7.4.140.0180.00917.86
7.4.130.0060.01116.40
7.4.120.0100.00716.36
7.4.110.0070.01016.32
7.4.100.0070.01116.38
7.4.90.0070.01416.28
7.4.80.0110.00719.39
7.4.70.0070.01016.54
7.4.60.0110.00616.57
7.4.50.0030.01116.43
7.4.40.0120.00416.47
7.4.30.0000.01816.33
7.4.10.0120.00614.59
7.4.00.0080.00614.61
7.3.330.0000.00513.17
7.3.320.0050.00013.04
7.3.310.0000.00716.23
7.3.300.0030.00316.00
7.3.290.0050.01216.13
7.3.280.0080.00916.14
7.3.270.0140.00417.40
7.3.260.0060.01216.15
7.3.250.0100.00916.19
7.3.240.0100.00816.28
7.3.230.0120.01116.39
7.3.210.0140.00316.17
7.3.200.0160.00416.09
7.3.190.0120.00616.14
7.3.180.0090.00616.40
7.3.170.0100.00616.27
7.3.160.0030.01316.25
7.3.130.0100.00714.66
7.3.120.0040.01414.43
7.3.110.0030.01314.91
7.3.100.0080.00814.61
7.3.90.0080.00814.68
7.3.80.0040.00414.65
7.3.70.0000.01414.63
7.3.60.0110.00414.59
7.3.50.0000.00914.63
7.3.40.0040.01114.66
7.3.30.0090.00614.76
7.3.20.0110.00316.39
7.3.10.0040.00716.46
7.3.00.0090.00016.54
7.2.330.0120.01216.41
7.2.320.0090.00916.50
7.2.310.0130.00916.44
7.2.300.0070.01016.49
7.2.290.0120.00816.45
7.2.260.0060.01214.77
7.2.250.0120.00614.84
7.2.240.0070.00714.71
7.2.230.0070.01014.73
7.2.220.0090.00615.02
7.2.210.0060.00314.64
7.2.200.0040.01214.98
7.2.190.0090.00614.66
7.2.180.0070.00315.04
7.2.170.0070.00315.03
7.2.160.0070.00314.77
7.2.150.0000.01316.95
7.2.140.0030.01016.88
7.2.130.0080.00416.69
7.2.120.0030.01316.67
7.2.110.0070.00716.74
7.2.100.0100.00316.66
7.2.90.0030.00616.76
7.2.80.0030.01116.74
7.2.70.0090.00616.71
7.2.60.0070.00716.67
7.2.50.0060.01216.39
7.2.40.0060.01016.82
7.2.30.0080.00816.44
7.2.20.0000.01216.79
7.2.10.0030.01016.50
7.2.00.0060.00916.77
7.1.330.0070.00715.50
7.1.320.0030.01015.48
7.1.310.0040.01115.52
7.1.300.0070.00715.26
7.1.290.0000.01215.45
7.1.280.0040.00415.41
7.1.270.0040.00815.39
7.1.260.0030.00915.36
7.1.250.0040.01115.39
7.1.240.0040.01115.63
7.1.230.0030.00615.52
7.1.220.0000.01015.79
7.1.210.0070.00715.33
7.1.200.0030.00815.61
7.1.190.0100.00015.51
7.1.180.0000.01415.34
7.1.170.0040.01215.56
7.1.160.0000.01215.59
7.1.150.0060.00615.68
7.1.140.0080.00315.71
7.1.130.0030.01015.68
7.1.120.0000.00915.29
7.1.110.0030.01015.50
7.1.100.0070.00715.78
7.1.90.0090.00615.26
7.1.80.0060.00315.55
7.1.70.0050.00916.25
7.1.60.0100.00817.42
7.1.50.0010.01016.20
7.1.40.0000.00915.69
7.1.30.0000.01415.62
7.1.20.0030.01315.50
7.1.10.0030.00615.29
7.1.00.0030.04218.96
7.0.330.0030.01015.32
7.0.320.0040.01115.04
7.0.310.0000.00915.05
7.0.300.0060.00915.21
7.0.290.0060.00615.16
7.0.280.0060.00615.25
7.0.270.0030.00615.21
7.0.260.0130.00015.18
7.0.250.0060.00815.25
7.0.240.0070.00715.04
7.0.230.0050.00315.48
7.0.220.0000.00915.38
7.0.210.0120.00614.96
7.0.200.0000.00815.84
7.0.190.0060.00615.06
7.0.180.0040.01115.34
7.0.170.0000.01315.16
7.0.160.0030.00715.39
7.0.150.0000.01115.14
7.0.140.0030.01015.09
7.0.130.0060.00915.44
7.0.120.0070.01015.35
7.0.110.0030.01315.27
7.0.100.0030.00915.24
7.0.90.0000.01315.36
7.0.80.0090.00615.39
7.0.70.0000.01215.31
7.0.60.0110.02117.57
7.0.50.0070.02216.64
7.0.40.0070.04416.73
7.0.30.0180.03516.77
7.0.20.0230.04316.76
7.0.10.0020.04916.79
7.0.00.0080.02316.80
5.6.400.0070.00714.37
5.6.390.0040.01113.88
5.6.380.0000.01514.35
5.6.370.0030.00713.89
5.6.360.0030.01013.82
5.6.350.0070.00714.43
5.6.340.0060.00314.40
5.6.330.0030.00714.12
5.6.320.0050.00514.09
5.6.310.0030.01314.16
5.6.300.0120.00414.11
5.6.290.0040.00713.95
5.6.280.0020.02217.64
5.6.270.0060.00913.96
5.6.260.0070.00714.05
5.6.250.0000.01314.18
5.6.240.0030.00914.03
5.6.230.0070.00713.95
5.6.220.0000.01214.16
5.6.210.0050.02517.31
5.6.200.0050.04216.14
5.6.190.0090.03317.38
5.6.180.0150.02917.50
5.6.170.0180.02317.33
5.6.160.0100.04317.43
5.6.150.0110.04216.16
5.6.140.0080.02416.02
5.6.130.0030.02316.14
5.6.120.0050.02717.64
5.6.110.0100.04317.59
5.6.100.0080.04217.60
5.6.90.0050.04517.40
5.6.80.0050.04517.24
5.6.70.0070.01014.04
5.6.60.0070.00714.09
5.6.50.0140.00413.77
5.6.40.0070.01114.10
5.6.30.0040.00814.14
5.6.20.0040.01214.16
5.6.10.0070.01013.98
5.6.00.0000.01614.12
5.5.380.0060.00613.95
5.5.370.0130.00313.94
5.5.360.0000.01113.96
5.5.350.0270.03017.30
5.5.340.0080.04315.97
5.5.330.0080.04317.12
5.5.320.0160.04617.12
5.5.310.0180.04317.16
5.5.300.0100.04016.02
5.5.290.0030.04516.03
5.5.280.0030.03217.40
5.5.270.0110.04217.30
5.5.260.0120.04117.42
5.5.250.0060.02217.31
5.5.240.0150.03817.07
5.5.230.0040.00713.82
5.5.220.0100.00714.06
5.5.210.0040.01113.88
5.5.200.0070.00314.09
5.5.190.0140.00013.97
5.5.180.0000.01513.77
5.5.170.0060.00913.64
5.5.160.0070.00713.83
5.5.150.0040.00814.05
5.5.140.0080.00814.03
5.5.130.0030.00514.16
5.5.120.0130.00014.16
5.5.110.0000.01414.20
5.5.100.0000.01413.86
5.5.90.0090.00613.88
5.5.80.0030.01213.95
5.5.70.0000.01213.75
5.5.60.0030.01214.11
5.5.50.0030.01413.96
5.5.40.0030.01414.05
5.5.30.0090.00614.22
5.5.20.0000.00914.06
5.5.10.0100.00314.09
5.5.00.0100.00314.25

preferences:
50.42 ms | 401 KiB | 5 Q