3v4l.org

run code in 300+ PHP versions simultaneously
<?php //declare(strict_types=1); function asd($a) : int { return $a; } var_dump(asd('1')); if (asd(1) == '1') { //echo asd(1); } echo ord(86);

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.0140.00718.13
8.3.50.0100.01122.05
8.3.40.0120.00318.57
8.3.30.0140.00018.55
8.3.20.0000.00720.34
8.3.10.0080.00020.41
8.3.00.0000.00721.66
8.2.180.0140.00716.38
8.2.170.0170.00022.96
8.2.160.0100.00322.20
8.2.150.0030.00524.18
8.2.140.0070.00024.66
8.2.130.0080.00020.63
8.2.120.0030.00626.35
8.2.110.0030.00620.52
8.2.100.0000.01117.59
8.2.90.0030.00619.16
8.2.80.0050.00317.97
8.2.70.0100.00017.25
8.2.60.0040.00417.93
8.2.50.0040.00418.09
8.2.40.0040.00420.43
8.2.30.0000.00719.41
8.2.20.0000.00817.55
8.2.10.0040.00417.98
8.2.00.0000.00818.00
8.1.280.0140.00725.92
8.1.270.0060.01222.27
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0090.00023.77
8.1.230.0080.00424.00
8.1.220.0000.00717.78
8.1.210.0050.00318.77
8.1.200.0030.00717.22
8.1.190.0000.00717.23
8.1.180.0050.00318.10
8.1.170.0060.00318.64
8.1.160.0000.00720.70
8.1.150.0040.00418.70
8.1.140.0030.00519.56
8.1.130.0000.00717.72
8.1.120.0000.00717.31
8.1.110.0040.00417.28
8.1.100.0080.00017.41
8.1.90.0000.00717.27
8.1.80.0000.00717.38
8.1.70.0030.00317.40
8.1.60.0000.00717.43
8.1.50.0030.00617.43
8.1.40.0050.00317.36
8.1.30.0000.00817.55
8.1.20.0050.00217.37
8.1.10.0000.00717.42
8.1.00.0040.00717.33
8.0.300.0070.00018.77
8.0.290.0030.00616.63
8.0.280.0030.00318.31
8.0.270.0030.00317.16
8.0.260.0030.00317.27
8.0.250.0040.00417.02
8.0.240.0000.00716.95
8.0.230.0070.00016.96
8.0.220.0090.00016.94
8.0.210.0060.00316.79
8.0.200.0040.00416.78
8.0.190.0040.00416.95
8.0.180.0030.00516.86
8.0.170.0050.00216.75
8.0.160.0070.00016.91
8.0.150.0000.00716.91
8.0.140.0000.00716.89
8.0.130.0030.00313.27
8.0.120.0080.00016.78
8.0.110.0000.00716.83
8.0.100.0020.00516.95
8.0.90.0000.00716.93
8.0.80.0040.01116.86
8.0.70.0050.00316.69
8.0.60.0000.00816.82
8.0.50.0000.00816.84
8.0.30.0120.00617.00
8.0.20.0100.00917.40
8.0.10.0070.00017.04
8.0.00.0080.00916.66
7.4.330.0000.00516.76
7.4.320.0000.00616.44
7.4.300.0030.00316.54
7.4.290.0050.00316.52
7.4.280.0040.00416.49
7.4.270.0050.00316.44
7.4.260.0000.00616.35
7.4.250.0040.00416.51
7.4.240.0050.00216.30
7.4.230.0020.00516.54
7.4.220.0100.01916.56
7.4.210.0000.02016.40
7.4.200.0050.00316.52
7.4.160.0100.00616.48
7.4.150.0090.00917.40
7.4.140.0160.00917.86
7.4.130.0130.00916.52
7.4.120.0110.00516.45
7.4.110.0060.00916.37
7.4.100.0080.01616.52
7.4.90.0030.01316.35
7.4.80.0070.01019.39
7.4.70.0060.01016.64
7.4.60.0100.00616.40
7.4.50.0060.00916.63
7.4.40.0070.01116.50
7.4.30.0030.01416.24
7.4.00.0100.00714.72
7.3.330.0050.00013.25
7.3.320.0000.00613.27
7.3.310.0060.00216.20
7.3.300.0000.00616.20
7.3.290.0070.01116.29
7.3.280.0080.00616.27
7.3.270.0090.00917.40
7.3.260.0120.00916.30
7.3.250.0050.01216.36
7.3.240.0140.00716.59
7.3.230.0120.00616.61
7.3.210.0090.00916.56
7.3.200.0140.00316.45
7.3.190.0100.00616.30
7.3.180.0090.01316.35
7.3.170.0070.01016.50
7.3.160.0070.00716.20
7.3.10.0030.01216.59
7.3.00.0040.01116.66
7.2.330.0040.01416.51
7.2.320.0100.00716.77
7.2.310.0080.00816.68
7.2.300.0080.00816.60
7.2.290.0100.00716.68
7.2.130.0070.00716.43
7.2.120.0040.00816.55
7.2.110.0030.01216.48
7.2.100.0000.01516.17
7.2.90.0080.00416.50
7.2.80.0030.01216.64
7.2.70.0060.00616.98
7.2.60.0030.01016.79
7.2.50.0100.00716.32
7.2.40.0130.00316.66
7.2.30.0080.00316.61
7.2.20.0180.00416.91
7.2.10.0000.01216.41
7.2.00.0050.00818.08
7.1.250.0120.00615.46
7.1.200.0090.00915.78
7.1.100.0040.00818.24
7.1.70.0070.00217.33
7.1.60.0040.02119.40
7.1.50.0060.00916.93
7.1.00.0100.07022.48
7.0.200.0290.01114.58
7.0.60.0130.08321.73
7.0.50.0170.07017.88
7.0.40.0070.04019.96
7.0.30.0300.07720.08
7.0.20.0270.06720.22
7.0.10.0030.04720.23
7.0.00.0000.08320.32
5.6.280.0030.06721.13
5.6.210.0100.05320.63
5.6.200.0030.07318.29
5.6.190.0070.03720.55
5.6.180.0330.05020.77
5.6.170.0270.06320.71
5.6.160.0100.06720.47
5.6.150.0000.04718.15
5.6.140.0000.07018.28
5.6.130.0030.09018.15
5.6.120.0100.04020.98
5.6.110.0100.07321.13
5.6.100.0130.08020.96
5.6.90.0200.07021.00
5.6.80.0070.03320.48
5.5.350.2430.03720.52
5.5.340.0030.04718.05
5.5.330.0000.09020.26
5.5.320.0570.06320.34
5.5.310.0330.05020.28
5.5.300.0100.04018.07
5.5.290.0170.06318.07
5.5.280.0100.08320.80
5.5.270.0100.06720.86
5.5.260.0030.06320.83
5.5.250.0070.08320.71
5.5.240.0270.06320.11

preferences:
55.54 ms | 401 KiB | 5 Q