3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (range(1,1000) as $int) { echo trim('=', base64_encode($int))."\n"; $trimmed = base64_decode(trim('=', base64_encode($int))); $untrimmed = base64_decode(base64_encode($int)); echo "{$int}: TRIMMED:" . ($trimmed == $int ? 'Pass' : 'Fail') . " ({$trimmed}) " . " UNTRIMMED: " . ($untrimmed == $int ? 'Pass' : 'Fail') . "({$untrimmed})" . "\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.0220.00318.31
8.3.50.0160.01021.89
8.3.40.0140.00718.67
8.3.30.0190.00919.05
8.3.20.0050.00520.20
8.3.10.0040.00721.95
8.3.00.0110.00019.26
8.2.180.0160.00616.75
8.2.170.0240.00322.96
8.2.160.0100.01320.52
8.2.150.0110.00024.18
8.2.140.0080.00324.66
8.2.130.0050.00526.16
8.2.120.0030.00719.36
8.2.110.0080.00420.39
8.2.100.0070.00717.91
8.2.90.0000.00918.34
8.2.80.0050.00517.97
8.2.70.0060.00317.50
8.2.60.0070.00317.93
8.2.50.0070.00718.07
8.2.40.0030.00918.02
8.2.30.0070.00718.07
8.2.20.0030.00617.57
8.2.10.0030.00618.07
8.2.00.0000.01017.60
8.1.280.0120.01225.92
8.1.270.0070.00323.79
8.1.260.0070.00326.35
8.1.250.0030.00628.09
8.1.240.0110.00022.05
8.1.230.0070.00720.79
8.1.220.0030.00617.74
8.1.210.0060.00319.03
8.1.200.0000.01017.35
8.1.190.0000.00917.23
8.1.180.0030.00618.10
8.1.170.0070.00418.49
8.1.160.0070.00422.15
8.1.150.0030.00718.92
8.1.140.0040.00717.34
8.1.130.0000.00817.85
8.1.120.0000.01017.41
8.1.110.0030.00617.46
8.1.100.0090.00017.39
8.1.90.0000.00917.53
8.1.80.0000.00917.54
8.1.70.0090.00017.48
8.1.60.0050.00517.50
8.1.50.0000.01117.54
8.1.40.0000.00917.57
8.1.30.0030.00717.63
8.1.20.0030.00617.58
8.1.10.0030.00617.52
8.1.00.0050.00517.56
8.0.300.0040.00420.07
8.0.290.0030.00716.63
8.0.280.0030.00518.32
8.0.270.0060.00317.29
8.0.260.0000.00817.20
8.0.250.0000.01017.01
8.0.240.0030.00716.84
8.0.230.0000.00816.92
8.0.220.0090.00016.93
8.0.210.0040.00416.96
8.0.200.0090.00017.03
8.0.190.0060.00316.87
8.0.180.0030.00616.96
8.0.170.0000.01017.01
8.0.160.0030.00616.95
8.0.150.0070.00416.93
8.0.140.0030.00616.92
8.0.130.0030.00513.36
8.0.120.0000.00916.83
8.0.110.0030.00616.74
8.0.100.0030.00616.86
8.0.90.0000.01016.92
8.0.80.0130.01316.96
8.0.70.0050.00516.82
8.0.60.0060.00316.78
8.0.50.0030.00616.91
8.0.30.0150.01617.08
8.0.20.0150.01917.40
8.0.10.0090.00016.96
8.0.00.0160.01116.76
7.4.330.0030.00615.00
7.4.320.0030.00716.70
7.4.300.0000.00816.63
7.4.290.0030.00616.64
7.4.280.0030.00616.47
7.4.270.0030.00516.62
7.4.260.0060.00316.53
7.4.250.0030.00616.50
7.4.240.0050.00316.44
7.4.230.0060.00316.30
7.4.220.0100.01616.63
7.4.210.0140.00716.54
7.4.200.0060.00316.71
7.4.160.0150.01516.52
7.4.150.0200.01717.40
7.4.140.0120.01717.86
7.4.130.0180.01216.61
7.4.120.0150.01816.50
7.4.110.0090.01816.51
7.4.100.0170.01316.49
7.4.90.0130.01316.49
7.4.80.0120.01219.39
7.4.70.0120.01616.64
7.4.60.0100.01616.57
7.4.50.0040.00716.54
7.4.40.0150.01216.61
7.4.30.0180.01516.48
7.4.00.0070.01414.88
7.3.330.0040.00413.14
7.3.320.0040.00413.34
7.3.310.0060.00316.29
7.3.300.0030.00516.27
7.3.290.0110.01516.34
7.3.280.0070.01416.35
7.3.270.0130.01617.40
7.3.260.0180.00716.53
7.3.250.0210.00516.46
7.3.240.0210.01116.60
7.3.230.0250.00016.39
7.3.210.0100.01716.25
7.3.200.0100.01719.39
7.3.190.0150.01216.30
7.3.180.0090.01516.58
7.3.170.0070.02416.33
7.3.160.0130.01016.54
7.2.330.0130.01316.71
7.2.320.0150.00916.51
7.2.310.0070.01716.49
7.2.300.0120.01216.61
7.2.290.0140.02416.69
7.2.60.0120.00616.99
7.1.200.0030.01615.73
7.1.100.0100.00318.23
7.1.70.0000.00916.92
7.1.60.0090.00619.32
7.1.50.0130.01016.98
7.0.200.0000.01116.75

preferences:
41.41 ms | 400 KiB | 5 Q