3v4l.org

run code in 300+ PHP versions simultaneously
<?php function analyze(string $input): bool { $decoded = base64_decode($input); var_dump(bin2hex($decoded)); return base64_encode($decoded) === $input; } var_dump(analyze('PHP')); var_dump(analyze('PHP=')); var_dump(analyze('PHM='));

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.10.0160.00619.49
8.3.140.0000.00816.64
8.3.130.0050.00518.31
8.3.120.0000.00820.88
8.3.110.0060.00320.94
8.3.100.0030.00624.06
8.3.90.0050.00326.77
8.3.80.0040.00416.25
8.3.70.0070.01116.58
8.3.60.0160.00316.49
8.3.50.0070.01316.39
8.3.40.0140.00418.67
8.3.30.0070.00718.75
8.3.20.0040.00420.16
8.3.10.0040.00420.07
8.3.00.0040.00423.64
8.2.260.0040.00416.91
8.2.250.0130.00716.90
8.2.240.0040.00418.75
8.2.230.0060.00322.58
8.2.220.0040.00437.54
8.2.210.0000.00726.77
8.2.200.0030.00616.63
8.2.190.0080.00816.75
8.2.180.0170.00025.92
8.2.170.0040.01122.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00021.18
8.2.110.0110.00019.18
8.2.100.0000.01117.78
8.2.90.0040.00418.03
8.2.80.0080.00017.97
8.2.70.0000.00917.63
8.2.60.0080.00017.38
8.2.50.0090.00017.93
8.2.40.0040.00417.93
8.2.30.0020.00519.20
8.2.20.0000.00718.01
8.2.10.0080.00017.91
8.2.00.0000.00717.90
8.1.300.0150.00020.03
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0080.00020.39
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00322.19
8.1.230.0080.00420.84
8.1.220.0060.00317.74
8.1.210.0090.00018.85
8.1.200.0000.01017.23
8.1.190.0050.00317.10
8.1.180.0030.00618.10
8.1.170.0070.00017.63
8.1.160.0070.00018.76
8.1.150.0030.00520.11
8.1.140.0040.00419.48
8.1.130.0040.00418.76
8.1.120.0000.00817.44
8.1.110.0040.00417.35
8.1.100.0000.00717.36
8.1.90.0000.00817.38
8.1.80.0030.00317.29
8.1.70.0040.00417.43
8.1.60.0000.01017.61
8.1.50.0000.00817.54
8.1.40.0000.00817.55
8.1.30.0070.00017.49
8.1.20.0060.00317.61
8.1.10.0080.00017.52
8.1.00.0040.00417.39
8.0.300.0030.00519.90
8.0.290.0030.00616.63
8.0.280.0070.00018.23
8.0.270.0040.00416.71
8.0.260.0070.00018.25
8.0.250.0070.00016.93
8.0.240.0080.00016.82
8.0.230.0000.00716.77
8.0.220.0030.00316.79
8.0.210.0030.00316.85
8.0.200.0030.00316.93
8.0.190.0000.00816.79
8.0.180.0030.00316.80
8.0.170.0000.00816.75
8.0.160.0030.00316.89
8.0.150.0030.00516.80
8.0.140.0000.00716.64
8.0.130.0000.00613.21
8.0.120.0040.00416.72
8.0.110.0030.00616.93
8.0.100.0030.00516.61
8.0.90.0070.00016.68
8.0.80.0040.01116.75
8.0.70.0050.00216.88
8.0.60.0000.00816.88
8.0.50.0040.00416.84
8.0.30.0110.00717.27
8.0.20.0100.01117.40
8.0.10.0040.00416.78
8.0.00.0100.01016.54
7.4.330.0000.00615.55
7.4.320.0000.00616.43
7.4.300.0000.00716.59
7.4.290.0000.00716.39
7.4.280.0030.00516.57
7.4.270.0000.00716.49
7.4.260.0000.00716.58
7.4.250.0000.00716.57
7.4.240.0000.00716.59
7.4.230.0000.00716.63
7.4.220.0030.01316.49
7.4.210.0090.00616.37
7.4.200.0040.00416.48
7.4.160.0090.00816.50
7.4.150.0120.00617.40
7.4.140.0100.00817.86
7.4.130.0140.00316.41
7.4.120.0160.00616.54
7.4.110.0140.00416.43
7.4.100.0150.00616.62
7.4.90.0060.01116.39
7.4.80.0150.00219.39
7.4.70.0060.01016.34
7.4.60.0130.00316.52
7.4.50.0090.00316.51
7.4.40.0000.01616.56
7.4.30.0060.00916.55
7.4.00.0080.00814.94
7.3.330.0050.00013.44
7.3.320.0060.00013.35
7.3.310.0000.00716.37
7.3.300.0030.00316.48
7.3.290.0090.00816.37
7.3.280.0080.00916.36
7.3.270.0120.00617.40
7.3.260.0060.01316.58
7.3.250.0100.00716.38
7.3.240.0090.00816.44
7.3.230.0100.01316.53
7.3.210.0150.00616.45
7.3.200.0160.00016.22
7.3.190.0040.01216.50
7.3.180.0120.00916.54
7.3.170.0030.01316.66
7.3.160.0060.01816.32
7.3.120.0050.01114.66
7.3.110.0060.01014.91
7.3.100.0100.00814.86
7.3.90.0050.01014.75
7.3.80.0060.01014.85
7.3.70.0050.00514.63
7.3.60.0050.00814.94
7.3.50.0060.00714.63
7.3.40.0040.01114.87
7.3.30.0080.00714.70
7.3.20.0040.01016.68
7.3.10.0050.00716.65
7.3.00.0030.01016.57
7.2.330.0090.00916.38
7.2.320.0150.00416.66
7.2.310.0100.00716.53
7.2.300.0050.01116.35
7.2.290.0140.00716.39
7.2.250.0040.01514.80
7.2.240.0050.01514.77
7.2.230.0090.00914.90
7.2.220.0050.00714.91
7.2.210.0050.01314.75
7.2.200.0070.00515.08
7.2.190.0080.00515.04
7.2.180.0080.00214.94
7.2.170.0050.01214.97
7.2.160.0080.00414.99
7.2.150.0090.00616.89
7.2.140.0100.00716.65
7.2.130.0060.00316.83
7.2.120.0070.00716.81
7.2.110.0110.00416.55
7.2.100.0060.00616.86
7.2.90.0030.01316.81
7.2.80.0030.01416.67
7.2.70.0120.00316.96
7.2.60.0050.01116.81
7.2.50.0090.00616.93
7.2.40.0090.00616.78
7.2.30.0070.01016.50
7.2.20.0000.01416.78
7.2.10.0060.00616.72
7.2.00.0040.01216.86
7.1.330.0080.00615.70
7.1.320.0070.01015.74
7.1.310.0050.00915.87
7.1.300.0080.00815.72
7.1.290.0050.00815.71
7.1.280.0020.01115.82
7.1.270.0080.00515.58
7.1.260.0070.00515.88
7.1.250.0040.00415.84
7.1.240.0000.00815.86
7.1.230.0070.00715.80
7.1.220.0110.00415.59
7.1.210.0090.00615.58
7.1.200.0250.00715.61
7.1.190.0040.00815.77
7.1.180.0000.01115.49
7.1.170.0000.01615.67
7.1.160.0110.00415.79
7.1.150.0070.00715.46
7.1.140.0060.00615.80
7.1.130.0090.00615.71
7.1.120.0030.01015.61
7.1.110.0120.00415.96
7.1.100.0060.00615.66
7.1.90.0090.00917.55
7.1.80.0060.00917.45
7.1.70.0070.00816.85
7.1.60.0170.00930.34
7.1.50.0150.01230.01
7.1.40.0210.01029.93
7.1.30.0140.01429.84
7.1.20.0210.00729.88
7.1.10.0060.01316.27
7.1.00.0050.01116.41
7.0.330.0040.01115.21
7.0.320.0100.00315.30
7.0.310.0130.00315.41
7.0.300.0030.01315.12
7.0.290.0040.00915.16
7.0.280.0040.01115.19
7.0.270.0000.01115.42
7.0.260.0080.00615.34
7.0.250.0030.01015.51
7.0.240.0040.00715.48
7.0.230.0060.00917.08
7.0.220.0220.00617.18
7.0.210.0220.01215.87
7.0.200.0060.00916.33
7.0.190.0080.00616.36
7.0.180.0060.00915.93
7.0.170.0030.01215.97
7.0.160.0060.01016.02
7.0.150.0080.00816.04
7.0.140.0230.01015.67
7.0.130.0030.01116.10
7.0.120.0050.00916.17
7.0.110.0060.01116.04
7.0.100.0060.00916.00
7.0.90.0040.01215.97
7.0.80.0200.01115.55
7.0.70.0190.00615.54
7.0.60.0170.00815.93
7.0.50.0250.01015.14
7.0.40.0160.01115.19
7.0.30.0210.00515.70
7.0.20.0160.00815.22
7.0.10.0150.00715.13
7.0.00.0110.01015.55
5.6.400.0000.01314.09
5.6.390.0030.01314.25
5.6.380.0080.00814.16
5.6.370.0040.00414.11
5.6.360.0080.00014.25
5.6.350.0100.00314.32
5.6.340.0060.01013.88
5.6.330.0000.01614.23
5.6.320.0060.00613.98
5.6.310.0030.01414.32
5.6.300.0030.01014.18
5.6.290.0030.00714.23
5.6.280.0000.01113.82
5.6.270.0000.01414.03
5.6.260.0090.00614.34
5.6.250.0000.01114.00
5.6.240.0040.01114.28
5.6.230.0060.00614.22
5.6.220.0100.00714.16
5.6.210.0100.00314.05
5.6.200.0030.01314.00
5.6.190.0120.00313.99
5.6.180.0100.00713.99
5.6.170.0000.00913.87
5.6.160.0060.00614.04
5.6.150.0030.00714.10
5.6.140.0030.00714.09
5.6.130.0060.00314.07
5.6.120.0110.00314.42
5.6.110.0070.01014.23
5.6.100.0030.01214.01
5.6.90.0040.00814.29
5.6.80.0000.01414.22
5.6.70.0060.00914.16
5.6.60.0060.00914.14
5.6.50.0040.00714.03
5.6.40.0060.00614.11
5.6.30.0060.00614.03
5.6.20.0050.00514.02
5.6.10.0030.01014.00
5.6.00.0060.00614.11

preferences:
36.55 ms | 403 KiB | 5 Q