3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "toto"; $binary = (binary) $string; var_dump($binary); $binary = b"binary string"; var_dump($binary);

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.70.0070.01118.43
8.3.60.0040.01116.61
8.3.50.0100.00721.93
8.3.40.0090.00618.59
8.3.30.0130.00319.02
8.3.20.0080.00019.91
8.3.10.0040.00423.53
8.3.00.0060.00319.26
8.2.180.0090.00916.62
8.2.170.0140.00022.96
8.2.160.0130.00020.52
8.2.150.0000.00724.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0100.00020.52
8.2.110.0060.00322.08
8.2.100.0080.00419.32
8.2.90.0080.00019.13
8.2.80.0000.00817.97
8.2.70.0050.00517.50
8.2.60.0080.00017.91
8.2.50.0060.00318.07
8.2.40.0070.00418.22
8.2.30.0040.00418.16
8.2.20.0000.00817.64
8.2.10.0050.00318.06
8.2.00.0030.00517.66
8.1.280.0140.00325.92
8.1.270.0060.00324.02
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0000.00923.89
8.1.230.0090.00319.11
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.00
8.1.190.0040.00417.25
8.1.180.0030.00718.88
8.1.170.0060.00318.52
8.1.160.0000.00821.95
8.1.150.0030.00518.61
8.1.140.0070.00017.30
8.1.130.0000.00817.78
8.1.120.0050.00217.44
8.1.110.0040.00417.41
8.1.100.0040.00417.45
8.1.90.0050.00217.32
8.1.80.0050.00317.39
8.1.70.0000.00817.43
8.1.60.0030.00517.58
8.1.50.0040.00417.40
8.1.40.0000.00717.52
8.1.30.0080.00317.55
8.1.20.0030.00617.63
8.1.10.0090.00317.42
8.1.00.0030.00517.36
8.0.300.0050.00318.77
8.0.290.0070.00017.16
8.0.280.0000.00718.38
8.0.270.0030.00317.29
8.0.260.0030.00317.14
8.0.250.0030.00316.77
8.0.240.0050.00516.90
8.0.230.0030.00416.94
8.0.220.0080.00016.82
8.0.210.0060.00316.71
8.0.200.0060.00016.86
8.0.190.0040.00416.89
8.0.180.0030.01016.74
8.0.170.0080.00016.72
8.0.160.0040.00416.87
8.0.150.0070.00016.71
8.0.140.0070.00016.79
8.0.130.0000.00613.19
8.0.120.0060.00316.70
8.0.110.0000.00716.85
8.0.100.0040.00416.69
8.0.90.0000.00716.66
8.0.80.0090.00616.77
8.0.70.0080.00016.81
8.0.60.0000.00716.80
8.0.50.0000.00816.80
8.0.30.0080.01416.81
8.0.20.0090.00917.40
8.0.10.0060.00316.91
8.0.00.0100.00816.71
7.4.330.0000.00515.00
7.4.320.0000.00616.59
7.4.300.0030.00316.63
7.4.290.0050.00216.59
7.4.280.0000.00716.48
7.4.270.0000.00716.60
7.4.260.0030.00316.50
7.4.250.0030.00516.32
7.4.240.0000.00716.49
7.4.230.0000.00716.33
7.4.220.0120.00616.55
7.4.210.0090.00616.54
7.4.200.0050.00216.68
7.4.190.0000.00716.35
7.4.160.0120.00316.38
7.4.150.0090.00917.40
7.4.140.0140.00617.86
7.4.130.0070.01016.43
7.4.120.0120.00816.47
7.4.110.0040.01416.40
7.4.100.0100.01016.34
7.4.90.0120.00616.46
7.4.80.0060.01619.39
7.4.70.0060.01116.37
7.4.60.0100.01016.47
7.4.50.0040.00416.55
7.4.40.0070.01016.26
7.4.30.0070.00716.66
7.4.00.0090.00615.06
7.3.330.0000.00512.95
7.3.320.0050.00012.93
7.3.310.0000.00716.27
7.3.300.0030.00316.15
7.3.290.0100.00716.14
7.3.280.0110.00816.16
7.3.270.0070.01017.40
7.3.260.0110.00716.51
7.3.250.0070.01216.28
7.3.240.0130.00616.41
7.3.230.0110.00516.39
7.3.210.0100.01416.17
7.3.200.0100.01319.39
7.3.190.0120.00816.16
7.3.180.0130.00916.31
7.3.170.0070.01316.29
7.3.160.0100.00716.28
7.3.120.0100.00314.57
7.2.330.0100.00716.52
7.2.320.0130.00616.56
7.2.310.0080.00816.22
7.2.300.0060.00916.58
7.2.290.0180.00516.41
7.2.00.0130.00719.08
7.1.200.0030.01015.50
7.1.100.0080.00418.34
7.1.70.0070.00017.17
7.1.60.0100.01319.46
7.1.50.0070.01716.94
7.1.00.0030.07722.39
7.0.200.0000.00916.76
7.0.140.0000.07722.00
7.0.60.0100.06321.64
7.0.50.0070.05722.20
7.0.40.0000.07320.04
7.0.30.0030.08320.04
7.0.20.0170.07020.03
7.0.10.0000.06719.95
7.0.00.0000.05719.95
5.6.280.0030.07320.90
5.6.210.0070.08020.74
5.6.200.0000.06321.05
5.6.190.0070.06020.94
5.6.180.0030.04321.05
5.6.170.0130.07321.14
5.6.160.0070.07721.01
5.6.150.0070.06721.02
5.6.140.0100.05720.98
5.6.130.0070.08021.13
5.6.120.0070.05021.09
5.6.110.0030.05321.04
5.6.100.0000.08020.97
5.6.90.0100.05720.96
5.6.80.0070.06720.35
5.6.70.0000.07020.52
5.6.60.0030.06320.35
5.6.50.0100.03720.27
5.6.40.0070.06020.37
5.6.30.0070.06720.25
5.6.20.0070.07020.34
5.6.10.0070.06720.36
5.6.00.0070.07320.32
5.5.350.0070.08320.37
5.5.340.0100.06320.87
5.5.330.0030.04020.73
5.5.320.0030.07720.87
5.5.310.0070.05320.88
5.5.300.0030.05720.79
5.5.290.0100.08020.86
5.5.280.0070.05020.78
5.5.270.0130.07720.64
5.5.260.0030.06020.75
5.5.250.0000.06320.54
5.5.240.0030.06720.11
5.5.230.0000.08720.10
5.5.220.0000.08320.02
5.5.210.0100.03320.25
5.5.200.0070.06320.14
5.5.190.0030.08020.06
5.5.180.0070.08020.02
5.5.160.0170.06720.12
5.5.150.0030.08020.14
5.5.140.0070.07320.16
5.5.130.0000.09020.11
5.5.120.0030.07020.21
5.5.110.0030.07320.22
5.5.100.0070.07720.11
5.5.90.0070.07320.11
5.5.80.0000.07320.00
5.5.70.0130.07020.16
5.5.60.0000.07019.96
5.5.50.0070.07020.11
5.5.40.0030.07720.06
5.5.30.0070.07719.86
5.5.20.0030.08020.09
5.5.10.0070.07719.96
5.5.00.0100.05320.06
5.4.450.0030.05319.23
5.4.440.0070.04019.39
5.4.430.0070.04719.22
5.4.420.0070.07019.38
5.4.410.0030.07019.25
5.4.400.0130.06718.97
5.4.390.0030.07719.05
5.4.380.0000.07718.97
5.4.370.0070.06018.95
5.4.360.0000.08019.00
5.4.350.0170.07018.90
5.4.340.0030.07719.02
5.4.320.0030.08018.97
5.4.310.0100.07019.17
5.4.300.0070.06718.92
5.4.290.0030.07319.08
5.4.280.0000.08018.84
5.4.270.0100.07019.20
5.4.260.0000.08018.84
5.4.250.0000.07319.05
5.4.240.0130.06319.16
5.4.230.0000.07718.98
5.4.220.0070.07719.19
5.4.210.0030.07319.09
5.4.200.0070.07319.06
5.4.190.0000.07718.99
5.4.180.0070.07319.15
5.4.170.0070.07019.14
5.4.160.0130.06319.14
5.4.150.0030.06318.96
5.4.140.0130.06316.33
5.4.130.0000.07316.30
5.4.120.0000.07716.40
5.4.110.0030.07316.18
5.4.100.0030.06316.29
5.4.90.0030.07316.21
5.4.80.0000.06716.23
5.4.70.0070.07016.28
5.4.60.0030.07316.29
5.4.50.0030.06316.47
5.4.40.0030.07016.33
5.4.30.0000.07016.34
5.4.20.0000.07316.27
5.4.10.0070.07016.37
5.4.00.0100.05315.73
5.3.290.0070.06014.63
5.3.280.0000.07714.56
5.3.270.0070.07314.43
5.3.260.0000.07014.56
5.3.250.0070.07714.53
5.3.240.0100.06314.50
5.3.230.0030.07314.49
5.3.220.0030.07014.49
5.3.210.0100.07314.49
5.3.200.0000.07714.34
5.3.190.0030.06314.47
5.3.180.0100.07014.50
5.3.170.0130.05314.47
5.3.160.0000.06314.35
5.3.150.0030.07714.53
5.3.140.0030.07014.52
5.3.130.0100.07014.37
5.3.120.0030.07314.50
5.3.110.0070.07314.49
5.3.100.0030.07313.98
5.3.90.0100.06014.00
5.3.80.0000.07713.94
5.3.70.0000.07013.94
5.3.60.0030.06713.79
5.3.50.0070.05713.79
5.3.40.0030.07313.70
5.3.30.0070.07313.74
5.3.20.0000.06313.66
5.3.10.0100.05713.64
5.3.00.0100.03713.61
5.2.170.0070.05311.12
5.2.160.0070.04311.05
5.2.150.0000.06311.18
5.2.140.0030.06010.97
5.2.130.0000.06011.01
5.2.120.0030.04011.10
5.2.110.0200.04310.88
5.2.100.0100.02711.13
5.2.90.0070.03011.14
5.2.80.0100.02710.88
5.2.70.0070.04011.07
5.2.60.0070.03010.82
5.2.50.0070.03011.02
5.2.40.0030.03710.99
5.2.30.0000.03711.01
5.2.20.0030.03010.94
5.2.10.0000.03010.87
5.2.00.0030.03010.71
5.1.60.0030.04010.40
5.1.50.0030.03010.40
5.1.40.0070.04710.40
5.1.30.0070.03710.40
5.1.20.0100.05010.40
5.1.10.0070.05710.40
5.1.00.0070.04310.40
5.0.50.0030.02310.40
5.0.40.0030.01710.40
5.0.30.0000.03310.40
5.0.20.0070.01710.40
5.0.10.0030.01710.40
5.0.00.0000.03010.40
4.4.90.0000.01710.40
4.4.80.0000.01310.40
4.4.70.0000.01710.40
4.4.60.0000.01310.40
4.4.50.0000.01310.40
4.4.40.0000.02710.40
4.4.30.0000.02010.40
4.4.20.0030.03010.40
4.4.10.0000.02010.40
4.4.00.0000.02710.40
4.3.110.0000.01710.40
4.3.100.0000.02010.40
4.3.90.0000.02010.40
4.3.80.0000.02310.40
4.3.70.0000.01310.40
4.3.60.0070.01310.40
4.3.50.0030.01710.40
4.3.40.0000.02710.40
4.3.30.0000.02010.40
4.3.20.0000.01710.40
4.3.10.0030.01310.40
4.3.00.0000.01310.40

preferences:
80.98 ms | 401 KiB | 5 Q