3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); trait Foo{ public function bar(int $int){ echo $int * 2; } public function callBar(){ $this->bar(123); } } class A{ use Foo; public function bar(string $string){ // incompatible signature! // prevents callBar from working correctly } } $a = new A; $a->bar("123"); $a->callBar();

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.4.140.0140.00817.75
8.4.130.0120.00918.57
8.4.120.0110.01017.89
8.4.110.0120.00918.25
8.4.100.0130.00718.03
8.4.90.0130.00620.54
8.4.80.0120.00718.88
8.4.70.0090.00518.76
8.4.60.0150.00418.85
8.4.50.0110.01019.01
8.4.40.0090.00922.10
8.4.30.0040.01522.34
8.4.20.0040.01518.66
8.4.10.0030.00619.89
8.3.270.0100.00916.60
8.3.260.0130.00716.50
8.3.250.0100.01018.36
8.3.240.0120.00616.79
8.3.230.0120.00716.55
8.3.220.0030.00418.80
8.3.210.0130.00618.66
8.3.200.0100.00916.64
8.3.190.0140.00117.06
8.3.180.0130.00718.69
8.3.170.0060.01218.70
8.3.160.0100.00717.11
8.3.150.0040.01419.22
8.3.140.0040.00420.69
8.3.130.0070.00718.34
8.3.120.0060.00319.05
8.3.110.0000.00820.94
8.3.100.0150.00024.06
8.3.90.0030.00526.77
8.3.80.0060.00317.97
8.3.70.0060.00916.38
8.3.60.0060.01216.88
8.3.50.0120.00517.53
8.3.40.0120.00318.78
8.3.30.0130.00318.82
8.3.20.0000.00920.54
8.3.10.0080.00020.52
8.3.00.0040.00420.84
8.2.290.0140.00416.59
8.2.280.0080.01119.97
8.2.270.0110.00719.05
8.2.260.0070.01016.73
8.2.250.0080.00016.68
8.2.240.0110.01118.78
8.2.230.0080.00022.58
8.2.220.0070.00337.54
8.2.210.0050.00326.77
8.2.200.0050.00518.42
8.2.190.0110.00418.30
8.2.180.0110.00718.67
8.2.170.0040.01522.96
8.2.160.0110.00419.21
8.2.150.0040.00424.18
8.2.140.0000.00924.66
8.2.130.0000.00717.91
8.2.120.0050.00326.35
8.2.110.0070.00319.21
8.2.100.0110.00017.72
8.2.90.0070.00018.22
8.2.80.0040.00417.97
8.2.70.0050.00317.55
8.2.60.0020.00618.16
8.2.50.0060.00318.10
8.2.40.0000.00719.35
8.2.30.0000.00719.30
8.2.20.0040.00417.94
8.2.10.0040.00419.48
8.2.00.0000.00718.08
8.1.330.0130.00616.41
8.1.320.0100.00316.08
8.1.310.0040.00416.81
8.1.300.0040.00417.77
8.1.290.0090.00330.84
8.1.280.0140.00725.92
8.1.270.0050.00220.33
8.1.260.0070.00726.35
8.1.250.0040.00428.09
8.1.240.0050.00522.47
8.1.230.0090.00322.75
8.1.220.0040.00417.74
8.1.210.0040.00418.90
8.1.200.0030.00617.38
8.1.190.0060.00319.01
8.1.180.0080.00018.10
8.1.170.0050.00318.65
8.1.160.0070.00019.01
8.1.150.0000.00718.83
8.1.140.0040.00420.18
8.1.130.0000.00720.18
8.1.120.0030.00517.46
8.1.110.0040.00417.43
8.1.100.0070.00017.47
8.1.90.0040.00417.47
8.1.80.0040.00417.53
8.1.70.0040.00417.46
8.1.60.0000.00917.57
8.1.50.0000.00817.45
8.1.40.0000.00717.40
8.1.30.0000.00817.65
8.1.20.0040.00417.59
8.1.10.0030.00517.61
8.1.00.0000.00817.50
8.0.300.0040.00419.90
8.0.290.0040.00416.75
8.0.280.0000.00818.41
8.0.270.0000.00717.26
8.0.260.0060.00018.45
8.0.250.0050.00217.03
8.0.240.0070.00016.92
8.0.230.0040.00417.07
8.0.220.0050.00616.89
8.0.210.0030.00516.98
8.0.200.0040.00417.03
8.0.190.0040.00417.06
8.0.180.0050.00216.89
8.0.170.0000.00916.94
8.0.160.0040.00417.02
8.0.150.0000.00716.74
8.0.140.0000.00716.94
8.0.130.0000.00613.39
8.0.120.0040.00416.86
8.0.110.0040.00416.84
8.0.100.0070.00016.81
8.0.90.0000.00716.81
8.0.80.0060.00916.98
8.0.70.0040.00416.82
8.0.60.0030.00517.03
8.0.50.0040.00416.83
8.0.30.0080.01117.11
8.0.20.0110.00717.40
8.0.10.0070.00016.95
8.0.00.0070.01216.74
7.4.330.0020.00215.55
7.4.320.0060.00016.50
7.4.300.0060.00016.52
7.4.290.0030.00316.61
7.4.280.0030.00516.61
7.4.270.0050.00316.52
7.4.260.0030.00316.59
7.4.250.0020.00516.36
7.4.240.0030.00316.62
7.4.230.0080.00016.70
7.4.220.0070.00016.39
7.4.210.0090.00616.62
7.4.200.0030.00316.59
7.4.160.0080.00916.53
7.4.140.0140.00317.86
7.4.130.0140.00416.55
7.4.120.0080.01016.52
7.4.110.0120.00616.45
7.4.100.0120.00616.38
7.4.90.0100.00716.46
7.4.80.0060.01319.39
7.4.70.0030.01416.57
7.4.60.0100.00616.55
7.4.50.0110.00316.49
7.4.40.0140.00416.57
7.4.00.0070.00715.03
7.3.330.0020.00213.35
7.3.320.0000.00513.38
7.3.310.0000.00716.36
7.3.300.0030.00316.30
7.3.290.0040.00416.36
7.3.280.0060.00916.34
7.3.260.0100.00916.39
7.3.240.0070.01116.37
7.3.230.0070.01016.32
7.3.210.0090.00916.29
7.3.200.0140.00516.57
7.3.190.0090.00916.47
7.3.180.0060.01016.29
7.3.170.0120.00616.43
7.3.160.0090.00916.44
7.3.120.0100.00714.80
7.3.110.0040.01114.73
7.3.100.0050.01314.93
7.3.90.0040.01114.56
7.3.80.0070.00814.85
7.3.70.0000.01714.66
7.3.60.0050.00814.86
7.3.50.0030.01014.88
7.3.40.0000.01714.82
7.3.30.0060.00314.43
7.3.20.0350.00515.78
7.3.10.0270.00915.61
7.3.00.0330.00615.66
7.2.330.0130.00716.66
7.2.320.0130.00316.78
7.2.310.0090.00916.75
7.2.300.0090.01516.66
7.2.290.0070.01016.56
7.2.250.0060.00915.23
7.2.240.0030.01615.10
7.2.230.0090.01215.02
7.2.220.0100.00615.05
7.2.210.0060.00914.86
7.2.200.0040.00914.94
7.2.190.0100.00315.04
7.2.180.0000.01014.66
7.2.170.0090.00614.92
7.2.150.0630.00014.89
7.2.140.0650.00915.05
7.2.130.0580.01514.96
7.2.120.0620.01015.05
7.2.110.0520.00614.91
7.2.100.0700.01014.97
7.2.90.0680.00715.11
7.2.80.0640.00714.89
7.2.70.0590.00715.03
7.2.60.0750.01314.94
7.2.50.0470.00715.21
7.2.40.0510.01314.99
7.2.30.0580.00715.08
7.2.20.0480.00614.83
7.2.10.0460.00314.79
7.2.00.0570.01015.20
7.1.330.0120.00315.43
7.1.320.0090.00315.82
7.1.310.0030.01015.67
7.1.300.0030.00915.60
7.1.290.0080.00815.72
7.1.280.0060.00915.74
7.1.270.0090.00015.75
7.1.260.0100.00715.86
7.1.250.0580.00313.80

preferences:
31.03 ms | 403 KiB | 5 Q