3v4l.org

run code in 300+ PHP versions simultaneously
<?php $runs = 10; while($runs--){ if(mt_rand(-2147483648, mt_getrandmax()) == 0){ echo "Yes"; } }

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.1.40.0170.00717.50
8.1.30.0070.00717.64
8.1.20.0030.01017.50
8.1.10.0060.01217.37
8.1.00.0160.00817.39
8.0.170.0080.00516.77
8.0.160.0120.00916.75
8.0.150.0100.01016.76
8.0.140.0190.00416.73
8.0.130.0200.00316.41
8.0.120.0120.00616.40
8.0.110.0120.00616.61
8.0.100.0160.00416.43
8.0.90.0130.00416.46
8.0.80.0150.00616.63
8.0.70.0060.00816.56
8.0.60.0120.00716.29
8.0.50.0060.01216.70
8.0.30.0090.00916.57
8.0.20.0130.00316.82
8.0.10.0130.00316.79
8.0.00.0120.00216.38
7.4.280.0080.00816.13
7.4.270.0210.00016.31
7.4.260.0150.00416.50
7.4.250.0100.00316.44
7.4.240.0140.00016.25
7.4.230.0130.00016.16
7.4.220.0080.00516.41
7.4.210.0080.00516.26
7.4.200.0080.00816.01
7.4.190.0000.01416.51
7.4.180.0140.00515.90
7.4.160.0130.00316.50
7.4.150.0040.00816.07
7.4.140.0080.00615.95
7.4.130.0070.00716.03
7.4.120.0170.00015.82
7.4.110.0070.00715.73
7.4.100.0120.00315.71
7.4.90.0110.00215.95
7.4.80.0140.00316.21
7.4.70.0100.00516.18
7.4.60.0090.00316.28
7.4.50.0100.00316.08
7.4.40.0060.00616.01
7.4.30.0040.00715.81
7.4.20.0130.00416.01
7.4.10.0120.00715.48
7.4.00.0060.01015.52
7.3.330.0160.00315.79
7.3.320.0150.00015.87
7.3.310.0150.00015.91
7.3.300.0120.00515.86
7.3.290.0120.00715.84
7.3.280.0160.00016.02
7.3.270.0130.00515.81
7.3.260.0120.00216.14
7.3.250.0210.00015.44
7.3.240.0150.00315.59
7.3.230.0150.00315.94
7.3.220.0150.00016.01
7.3.210.0170.00215.68
7.3.200.0100.00515.79
7.3.190.0080.01116.03
7.3.180.0070.01115.72
7.3.170.0150.00015.52
7.3.160.0040.00916.08
7.3.150.0150.00015.68
7.3.140.0130.00315.48
7.3.130.0110.00715.39
7.3.120.0100.00914.84
7.3.110.0070.00815.08
7.3.100.0070.00815.28
7.3.90.0100.01015.41
7.3.80.0080.00815.02
7.3.70.0060.01015.27
7.3.60.0070.00915.30
7.3.50.0090.00715.26
7.3.40.0080.00815.19
7.3.30.0080.00415.35
7.3.20.0060.00917.18
7.3.10.0090.00516.85
7.3.00.0120.00316.86
7.2.340.0160.00315.75
7.2.330.0150.00315.89
7.2.320.0080.00816.00
7.2.310.0170.00016.14
7.2.300.0150.00215.89
7.2.290.0130.00316.02
7.2.280.0110.00515.58
7.2.270.0160.00316.23
7.2.260.0120.00315.18
7.2.250.0130.00515.32
7.2.240.0130.00515.49
7.2.230.0080.00815.24
7.2.220.0110.00515.46
7.2.210.0120.00315.57
7.2.200.0120.00515.53
7.2.190.0070.00815.60
7.2.180.0090.00615.40
7.2.170.0100.00515.39
7.2.160.0090.00615.27
7.2.150.0060.01117.25
7.2.140.0120.00517.12
7.2.130.0080.00517.04
7.2.120.0110.00517.08
7.2.110.0070.00617.13
7.2.100.0040.00917.06
7.2.90.0050.00917.18
7.2.80.0060.00817.16
7.2.70.0110.00316.97
7.2.60.0070.00717.15
7.2.50.0090.00617.10
7.2.40.0100.00617.08
7.2.30.0060.01017.09
7.2.20.0090.00617.13
7.2.10.0090.00517.04
7.2.00.0090.00617.17
7.1.330.0090.00416.33
7.1.320.0080.00516.20
7.1.310.0090.00616.35
7.1.300.0100.00316.28
7.1.290.0070.00916.34
7.1.280.0080.00716.33
7.1.270.0110.00616.34
7.1.260.0080.00916.26
7.1.250.0070.00516.01
7.1.240.0110.00416.13
7.1.230.0100.00616.19
7.1.220.0090.00716.05
7.1.210.0100.00516.35
7.1.200.0090.00516.33
7.1.190.0150.00216.35
7.1.180.0090.00316.15
7.1.170.0110.00516.37
7.1.160.0090.00516.17
7.1.150.0140.00016.16
7.1.140.0080.00716.31
7.1.130.0100.00416.15
7.1.120.0100.00416.43
7.1.110.0100.00516.19
7.1.100.0100.00616.31
7.1.90.0160.00216.33
7.1.80.0110.00416.42
7.1.70.0060.00416.58
7.1.60.0090.00717.45
7.1.50.0100.00816.40
7.1.40.0120.00516.26
7.1.30.0110.00016.16
7.1.20.0090.00616.32
7.1.10.0140.00216.07
7.1.00.0060.03018.41
7.0.330.0100.00516.00
7.0.320.0070.00716.17
7.0.310.0080.01016.02
7.0.300.0040.00916.01
7.0.290.0090.00616.10
7.0.280.0090.00516.02
7.0.270.0100.00715.90
7.0.260.0110.00315.91
7.0.250.0060.00416.11
7.0.240.0100.00616.06
7.0.230.0110.00516.11
7.0.220.0080.00716.00
7.0.210.0080.00715.97
7.0.200.0070.00516.23
7.0.190.0110.00516.08
7.0.180.0060.00515.99
7.0.170.0050.00616.12
7.0.160.0090.00515.88
7.0.150.0070.00316.06
7.0.140.0090.02817.99
7.0.130.0060.00916.14
7.0.120.0080.00715.81
7.0.110.0090.00316.12
7.0.100.0080.00915.78
7.0.90.0040.00616.16
7.0.80.0080.00315.94
7.0.70.0060.00516.02
7.0.60.0070.01917.25
7.0.50.0080.01816.67
7.0.40.0100.01816.74
7.0.30.0170.02816.84
7.0.20.0070.02416.74
7.0.10.0060.01716.92
7.0.00.0070.02116.67
5.6.400.0050.00614.79
5.6.390.0070.00814.78
5.6.380.0070.00514.87
5.6.370.0070.00514.77
5.6.360.0050.00615.06
5.6.350.0000.00915.18
5.6.340.0060.00514.77
5.6.330.0020.01114.99
5.6.320.0040.00614.81
5.6.310.0040.00614.98
5.6.300.0060.00814.96
5.6.290.0070.00814.65
5.6.280.0060.02916.84
5.6.270.0030.00514.92
5.6.260.0030.00814.94
5.6.250.0140.00214.99
5.6.240.0090.00714.76
5.6.230.0110.00314.77
5.6.220.0080.00615.00
5.6.210.0100.02916.78
5.6.200.0080.03315.89
5.6.190.0090.03216.83
5.6.180.0130.01916.72
5.6.170.0110.02716.75
5.6.160.0100.02216.72
5.6.150.0090.03116.02
5.6.140.0110.01816.04
5.6.130.0110.02916.14
5.6.120.0090.01716.92
5.6.110.0070.02216.97
5.6.100.0060.01917.00
5.6.90.0050.03116.99
5.6.80.0040.02616.73
5.6.70.0110.00514.91
5.6.60.0100.00614.85
5.6.50.0090.00514.73
5.6.40.0060.01014.87
5.6.30.0090.00614.76
5.6.20.0090.00714.68
5.6.10.0070.00314.78
5.6.00.0090.00314.70
5.5.380.0130.00115.03
5.5.370.0100.00614.99
5.5.360.0100.00615.00
5.5.350.1360.01616.72
5.5.340.0080.03215.96
5.5.330.0090.02016.60
5.5.320.0160.03116.62
5.5.310.0200.01916.64
5.5.300.0100.03016.01
5.5.290.0070.01815.88
5.5.280.0070.01916.83
5.5.270.0090.03216.91
5.5.260.0120.03316.83
5.5.250.0100.02316.89
5.5.240.0100.02616.74
5.5.230.0120.00415.00
5.5.220.0100.00414.92
5.5.210.0060.00714.90
5.5.200.0040.00814.89
5.5.190.0100.00414.80
5.5.180.0080.00814.94
5.5.170.0130.00314.73
5.5.160.0090.00714.89
5.5.150.0090.00314.80
5.5.140.0110.00314.79
5.5.130.0070.00514.76
5.5.120.0100.00414.93
5.5.110.0050.00714.88
5.5.100.0070.00914.90
5.5.90.0100.00415.06
5.5.80.0060.00914.96
5.5.70.0110.00514.69
5.5.60.0120.00314.72
5.5.50.0060.00814.80
5.5.40.0110.00614.93
5.5.30.0080.00714.92
5.5.20.0100.00314.86
5.5.10.0060.00914.98
5.5.00.0110.00314.65
5.4.450.0070.02524.74
5.4.440.0130.01722.31
5.4.430.0090.01920.65
5.4.420.0160.01920.28
5.4.410.0120.01919.59
5.4.400.0150.01718.43
5.4.390.0150.01518.36
5.4.380.0200.02514.14
5.4.370.0220.02014.08
5.4.360.0160.02114.10
5.4.350.0130.02514.05
5.4.340.0160.02014.08
5.4.330.0070.00311.84
5.4.320.0070.01412.04
5.4.310.0060.01712.07
5.4.300.0110.01912.07
5.4.290.0080.01912.02
5.4.280.0100.01711.98
5.4.270.0100.01711.98
5.4.260.0080.02012.06
5.4.250.0070.02112.01
5.4.240.0070.02111.96
5.4.230.0050.02011.90
5.4.220.0050.01911.94
5.4.210.0050.01912.00
5.4.200.0060.01711.94
5.4.190.0100.01511.90
5.4.180.0130.01711.94
5.4.170.0090.02111.97
5.4.160.0110.02311.99
5.4.150.0140.01911.92
5.4.140.0110.02511.89
5.4.130.0130.02311.83
5.4.120.0110.02911.93
5.4.110.0070.02811.88
5.4.100.0170.02511.91
5.4.90.0120.02811.93
5.4.80.0080.01911.90
5.4.70.0100.01611.89
5.4.60.0100.01411.90
5.4.50.0070.02011.79
5.4.40.0100.02011.90
5.4.30.0070.01711.88
5.4.20.0070.01511.90
5.4.10.0100.01911.95
5.4.00.0060.03011.71
5.3.290.0090.01612.38
5.3.280.0070.02212.20
5.3.270.0090.02212.30
5.3.260.0060.01612.38
5.3.250.0060.02212.36
5.3.240.0090.02512.31
5.3.230.0070.02112.35
5.3.220.0070.02212.30
5.3.210.0070.02312.22
5.3.200.0060.02212.21
5.3.190.0070.02012.31
5.3.180.0060.02412.34
5.3.170.0070.02412.29
5.3.160.0050.02512.33
5.3.150.0070.02512.36
5.3.140.0100.01912.25
5.3.130.0090.02412.24
5.3.120.0090.03412.33
5.3.110.0070.02212.20
5.3.100.0080.01812.04
5.3.90.0100.01512.13
5.3.80.0090.01611.97
5.3.70.0080.01712.09
5.3.60.0070.02112.03
5.3.50.0070.02012.06
5.3.40.0060.01912.00
5.3.30.0060.02212.10
5.3.20.0060.02111.90
5.3.10.0090.02511.84
5.3.00.0060.02111.91

preferences:
48.64 ms | 401 KiB | 5 Q