3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (range(1,1000) as $int) { echo "{$int}: TRIMMED:" . (base64_decode(trim('=', base64_encode($int))) === $int ? 'Pass' : 'Fail') . " UNTRIMMED: " . (base64_decode(base64_encode($int)) === $int ? 'Pass' : 'Fail') . "\n"; }

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.0100.01318.30
8.3.50.0110.01022.02
8.3.40.0070.01018.85
8.3.30.0100.00719.09
8.3.20.0000.00820.40
8.3.10.0000.00920.18
8.3.00.0040.00419.13
8.2.180.0130.01016.50
8.2.170.0100.00722.96
8.2.160.0090.00620.35
8.2.150.0030.00624.18
8.2.140.0060.00324.66
8.2.130.0090.00026.16
8.2.120.0070.01320.75
8.2.110.0040.00722.21
8.2.100.0130.00020.38
8.2.90.0000.00819.17
8.2.80.0000.00917.97
8.2.70.0110.00017.63
8.2.60.0000.01017.80
8.2.50.0070.00418.07
8.2.40.0040.00418.16
8.2.30.0030.00518.04
8.2.20.0000.00917.64
8.2.10.0030.00618.02
8.2.00.0060.00317.59
8.1.280.0030.01725.92
8.1.270.0030.00623.84
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00722.16
8.1.230.0080.00419.09
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0070.00317.23
8.1.190.0000.00817.10
8.1.180.0000.00918.10
8.1.170.0030.00718.66
8.1.160.0040.00422.16
8.1.150.0030.00618.87
8.1.140.0000.00917.31
8.1.130.0030.00517.82
8.1.120.0030.00617.35
8.1.110.0000.00817.49
8.1.100.0080.00017.34
8.1.90.0050.00317.50
8.1.80.0040.00417.44
8.1.70.0040.00417.30
8.1.60.0060.00317.60
8.1.50.0000.00917.47
8.1.40.0050.00517.44
8.1.30.0030.00617.64
8.1.20.0030.00717.54
8.1.10.0040.00417.50
8.1.00.0030.00617.44
8.0.300.0030.00518.77
8.0.290.0040.00416.75
8.0.280.0020.00518.51
8.0.270.0050.00516.88
8.0.260.0000.00717.23
8.0.250.0060.00316.91
8.0.240.0000.00716.99
8.0.230.0040.00416.96
8.0.220.0040.00416.88
8.0.210.0050.00316.91
8.0.200.0030.00516.89
8.0.190.0040.00416.91
8.0.180.0030.00516.95
8.0.170.0030.00616.99
8.0.160.0000.00916.82
8.0.150.0000.00916.85
8.0.140.0080.00016.96
8.0.130.0030.00313.41
8.0.120.0030.00616.96
8.0.110.0030.00616.96
8.0.100.0060.00316.80
8.0.90.0000.00816.81
8.0.80.0120.00616.86
8.0.70.0090.00016.93
8.0.60.0000.00816.81
8.0.50.0040.00416.84
8.0.30.0120.01516.92
8.0.20.0110.01517.40
8.0.10.0040.00416.95
8.0.00.0170.00616.79
7.4.330.0070.00015.09
7.4.320.0100.00016.51
7.4.300.0040.00416.58
7.4.290.0000.00816.63
7.4.280.0030.00616.58
7.4.270.0080.00016.52
7.4.260.0040.00416.62
7.4.250.0000.00816.57
7.4.240.0040.00516.54
7.4.230.0000.00816.69
7.4.220.0030.02216.40
7.4.210.0090.00616.70
7.4.200.0000.00816.56
7.4.160.0090.01316.36
7.4.150.0170.00517.40
7.4.140.0100.01217.86
7.4.130.0080.01516.59
7.4.120.0140.00816.48
7.4.110.0100.01016.39
7.4.100.0190.00716.51
7.4.90.0130.00916.62
7.4.80.0130.00919.39
7.4.70.0060.01916.41
7.4.60.0070.01316.51
7.4.50.0020.00216.16
7.4.40.0120.00816.41
7.4.30.0170.00316.62
7.4.00.0080.00814.94
7.3.330.0040.00413.36
7.3.320.0000.00713.22
7.3.310.0040.00416.52
7.3.300.0000.00716.40
7.3.290.0070.01416.36
7.3.280.0120.00716.36
7.3.270.0140.01017.40
7.3.260.0130.01716.26
7.3.250.0050.01716.50
7.3.240.0100.01716.23
7.3.230.0170.00716.46
7.3.210.0170.00316.56
7.3.200.0170.01119.39
7.3.190.0130.01016.57
7.3.180.0070.01116.70
7.3.170.0160.00616.27
7.3.160.0070.01316.50
7.2.330.0070.01616.60
7.2.320.0070.01516.73
7.2.310.0210.00016.50
7.2.300.0060.01316.30
7.2.290.0070.02116.77
7.1.70.0060.01016.46
7.1.60.0070.00417.38
7.1.50.0180.00416.74
7.0.200.0070.01316.76

preferences:
38.54 ms | 401 KiB | 5 Q