3v4l.org

run code in 300+ PHP versions simultaneously
<?php Interface wut { public function foo( $yolo ); } class dude implements wut { public function foo ( $yolo ): string { echo $yolo; } } $x = new dude(); $x->foo(2);

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.0210.00016.75
8.3.50.0070.00716.47
8.3.40.0070.00718.88
8.3.30.0110.00318.67
8.3.20.0080.00020.31
8.3.10.0050.00221.85
8.3.00.0080.00017.75
8.2.180.0070.01116.75
8.2.170.0040.01122.96
8.2.160.0040.01120.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00422.08
8.2.120.0080.00026.35
8.2.110.0050.00520.98
8.2.100.0040.00718.03
8.2.90.0040.00419.21
8.2.80.0040.00417.98
8.2.70.0090.00017.63
8.2.60.0080.00018.05
8.2.50.0040.00418.10
8.2.40.0000.00720.47
8.2.30.0050.00519.30
8.2.20.0070.00017.98
8.2.10.0040.00417.94
8.2.00.0050.00217.97
8.1.280.0110.00725.92
8.1.270.0040.00424.01
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0130.00323.92
8.1.230.0110.00018.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00917.35
8.1.190.0090.00017.35
8.1.180.0000.00718.10
8.1.170.0050.00318.59
8.1.160.0000.00718.89
8.1.150.0030.00319.02
8.1.140.0030.00519.58
8.1.130.0000.00718.93
8.1.120.0000.00717.46
8.1.110.0030.00317.35
8.1.100.0050.00317.50
8.1.90.0000.00717.50
8.1.80.0040.00417.43
8.1.70.0040.00417.47
8.1.60.0040.00417.53
8.1.50.0080.00017.50
8.1.40.0050.00217.55
8.1.30.0000.01017.62
8.1.20.0030.00617.53
8.1.10.0040.00417.59
8.1.00.0050.00317.49
8.0.300.0090.00018.77
8.0.290.0080.00016.75
8.0.280.0070.00018.46
8.0.270.0000.00717.18
8.0.260.0070.00016.84
8.0.250.0030.00316.93
8.0.240.0030.00616.98
8.0.230.0030.00316.96
8.0.220.0070.00016.95
8.0.210.0030.00317.02
8.0.200.0040.00416.98
8.0.190.0050.00317.02
8.0.180.0040.00416.98
8.0.170.0030.00317.01
8.0.160.0000.00716.97
8.0.150.0000.00816.99
8.0.140.0000.00716.84
8.0.130.0000.00513.42
8.0.120.0030.00516.92
8.0.110.0000.00716.79
8.0.100.0000.00716.82
8.0.90.0000.00716.80
8.0.80.0070.00716.99
8.0.70.0000.00717.02
8.0.60.0050.00216.94
8.0.50.0000.00816.86
8.0.30.0120.00617.05
8.0.20.0140.01317.40
8.0.10.0040.00417.14
8.0.00.0130.00417.07
7.4.330.0050.00015.55
7.4.320.0030.00316.61
7.4.300.0030.00316.52
7.4.290.0030.00316.46
7.4.280.0030.00516.35
7.4.270.0030.00316.52
7.4.260.0040.00416.50
7.4.250.0000.00716.49
7.4.240.0000.00816.52
7.4.230.0030.00316.72
7.4.220.0130.01316.46
7.4.210.0120.00916.55
7.4.200.0000.00716.40
7.4.160.0090.01116.54
7.4.150.0120.00817.40
7.4.140.0130.00717.86
7.4.130.0170.00816.42
7.4.120.0090.00816.56
7.4.110.0140.00716.51
7.4.100.0090.00916.51
7.4.90.0130.00516.49
7.4.80.0120.00919.39
7.4.70.0080.00916.57
7.4.60.0080.00816.56
7.4.50.0030.01216.09
7.4.40.0080.00816.63
7.4.30.0000.01816.68
7.4.10.0130.00315.07
7.4.00.0040.00914.88
7.3.330.0000.00513.29
7.3.320.0000.00613.36
7.3.310.0030.00316.21
7.3.300.0040.00416.22
7.3.290.0070.00716.40
7.3.280.0070.01116.35
7.3.270.0130.00617.40
7.3.260.0080.00916.53
7.3.250.0090.01016.42
7.3.240.0070.01016.44
7.3.230.0070.01116.70
7.3.210.0120.00616.41
7.3.200.0060.00916.62
7.3.190.0110.00516.63
7.3.180.0120.00616.32
7.3.170.0060.01616.58
7.3.160.0090.01316.57
7.3.130.0040.01114.70
7.3.120.0030.01314.89
7.3.110.0090.00914.85
7.3.100.0060.00314.94
7.3.90.0070.00714.80
7.3.80.0030.00614.58
7.3.70.0070.00715.01
7.3.60.0110.00414.93
7.3.50.0000.01514.84
7.3.40.0000.01314.92
7.3.30.0080.00814.83
7.3.20.0070.01016.90
7.3.10.0000.01316.61
7.3.00.0070.00716.76
7.2.330.0140.00316.39
7.2.320.0070.01016.45
7.2.310.0070.01016.34
7.2.300.0080.00816.65
7.2.290.0080.00816.72
7.2.260.0070.01114.73
7.2.250.0090.00915.23
7.2.240.0040.01114.99
7.2.230.0070.00715.00
7.2.220.0030.00715.07
7.2.210.0030.00715.11
7.2.200.0110.00314.83
7.2.190.0060.00715.05
7.2.180.0000.01114.94
7.2.170.0030.01214.89
7.2.160.0100.00714.83
7.2.150.0070.01016.63
7.2.140.0000.01416.82
7.2.130.0040.00717.02
7.2.120.0090.00916.66
7.2.110.0120.00316.90
7.2.100.0090.00916.86
7.2.90.0090.00616.90
7.2.80.0030.01016.74
7.2.70.0120.00316.70
7.2.60.0080.00816.90
7.2.50.0090.00916.71
7.2.40.0030.01016.73
7.2.30.0070.01016.95
7.2.20.0030.00716.79
7.2.10.0040.00816.91
7.2.00.0070.00618.25
7.1.330.0070.00715.91
7.1.320.0060.00315.82
7.1.310.0090.00315.90
7.1.300.0040.01115.85
7.1.290.0090.00315.52
7.1.280.0000.01415.80
7.1.270.0100.00315.61
7.1.260.0040.01115.40
7.1.250.0150.00415.86
7.1.240.0030.00715.51
7.1.230.0060.00615.81
7.1.220.0000.01215.82
7.1.210.0000.01415.76
7.1.200.0070.00415.72
7.1.190.0000.01515.61
7.1.180.0090.00615.68
7.1.170.0070.00415.47
7.1.160.0060.00615.65
7.1.150.0070.00315.55
7.1.140.0000.01215.63
7.1.130.0070.00415.83
7.1.120.0000.01415.41
7.1.110.0070.01015.84
7.1.100.0030.00916.83
7.1.90.0030.01015.74
7.1.80.0030.00615.92
7.1.70.0060.00916.48
7.1.60.0150.01225.47
7.1.50.0130.01125.29
7.1.40.0170.00825.19
7.1.30.0100.01424.93
7.1.20.0200.00925.08
7.1.10.0050.00916.06
7.1.00.0030.01016.03
7.0.330.0100.00315.31
7.0.320.0060.00315.36
7.0.310.0040.00415.36
7.0.300.0070.00315.26
7.0.290.0040.00715.42
7.0.280.0060.00915.37
7.0.270.0040.00415.43
7.0.260.0110.00415.34
7.0.250.0100.00715.30
7.0.240.0030.00915.17
7.0.230.0060.00615.58
7.0.220.0070.00715.42
7.0.210.0000.01115.33
7.0.200.0060.01015.86
7.0.190.0070.01015.90
7.0.180.0010.01615.76
7.0.170.0060.01015.64
7.0.160.0060.00915.77
7.0.150.0020.01315.70
7.0.140.0090.00515.74
7.0.130.0080.00715.88
7.0.120.0080.00815.85
7.0.110.0110.00915.74
7.0.100.0110.00715.86
7.0.90.0040.01015.83
7.0.80.0120.00415.83
7.0.70.0040.01115.90
7.0.60.0090.00815.76
7.0.50.0000.01416.01
7.0.40.0050.01114.86
7.0.30.0070.01214.78
7.0.20.0100.00714.74
7.0.10.0050.00814.87
7.0.00.0120.00614.78
5.6.400.0040.00414.37
5.6.390.0030.01014.36
5.6.380.0110.00314.36
5.6.370.0060.00914.06
5.6.360.0080.00313.98
5.6.350.0030.01014.41
5.6.340.0090.00314.15
5.6.330.0000.01214.41
5.6.320.0040.00714.34
5.6.310.0040.00413.80
5.6.300.0090.00614.41
5.6.290.0070.00714.18
5.6.280.0100.00313.95
5.6.270.0040.00714.25
5.6.260.0070.01014.09
5.6.250.0040.01114.09
5.6.240.0070.00714.16
5.6.230.0070.00714.06
5.6.220.0000.01314.34
5.6.210.0070.00714.46
5.6.200.0070.01014.02
5.6.190.0100.00314.03
5.6.180.0040.00813.87
5.6.170.0070.00714.10
5.6.160.0080.00414.20
5.6.150.0080.00814.14
5.6.140.0030.00614.02
5.6.130.0100.00314.06
5.6.120.0030.01014.26
5.6.110.0000.01614.43
5.6.100.0030.01313.82
5.6.90.0060.00613.84
5.6.80.0030.01014.22
5.6.70.0080.00413.92
5.6.60.0070.01014.00
5.6.50.0070.00313.89
5.6.40.0040.01414.02
5.6.30.0060.00914.09
5.6.20.0070.00414.04
5.6.10.0070.00713.94
5.6.00.0030.01014.11

preferences:
51.47 ms | 400 KiB | 5 Q