3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(base64_decode("\0YW55dGhpbmc=", true)); var_dump(base64_decode("YW55dGhpbmc=\0", true)); var_dump(base64_decode("YW55\0dGhpbmc=", true));
based on A7qCT

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.0.00.0030.01316.68
7.4.130.0000.01616.44
7.4.120.0090.00916.30
7.4.110.0030.01716.44
7.4.100.0100.01016.24
7.4.90.0100.00716.31
7.4.80.0110.00619.39
7.4.70.0100.02716.32
7.4.60.0130.00916.32
7.4.50.0040.01216.21
7.4.40.0130.00316.38
7.4.30.0060.01016.36
7.4.00.0030.01414.68
7.3.240.0110.00616.21
7.3.230.0130.00416.39
7.3.210.0130.00316.05
7.3.200.0110.01116.41
7.3.190.0040.01516.35
7.3.180.0040.01116.09
7.3.170.0060.00916.44
7.3.160.0090.00616.14
7.3.70.0040.01414.42
7.3.60.0080.00414.51
7.3.50.0050.01014.51
7.3.40.0090.00614.62
7.3.30.0120.00014.28
7.3.20.0110.00416.53
7.3.10.0120.00416.51
7.3.00.0140.00716.46
7.2.330.0090.00916.13
7.2.320.0110.01116.27
7.2.310.0110.01116.20
7.2.300.0030.01416.51
7.2.290.0080.01116.28
7.2.200.0180.00914.89
7.2.190.0140.01114.83
7.2.180.0040.01114.70
7.2.170.0060.00614.61
7.2.160.0150.00014.83
7.2.150.0100.00616.67
7.2.140.0120.00916.49
7.2.130.0000.01316.65
7.2.120.0060.01116.47
7.2.110.0060.00616.61
7.2.100.0150.00816.71
7.2.90.0070.01416.58
7.2.80.0090.00616.59
7.2.70.0170.00716.35
7.2.60.0090.00916.60
7.2.50.0090.00816.76
7.2.40.0120.01516.73
7.2.30.0080.00416.75
7.2.20.0090.01416.72
7.2.10.0150.01016.82
7.2.00.0080.00817.88
7.1.300.0070.00715.36
7.1.290.0060.01815.73
7.1.280.0090.00315.65
7.1.270.0090.00615.56
7.1.260.0160.00915.49
7.1.250.0080.00315.41
7.1.240.0280.00415.62
7.1.230.0160.01315.63
7.1.220.0120.00915.51
7.1.210.0180.01815.36
7.1.200.0160.00615.62
7.1.190.0220.01215.41
7.1.180.0120.00815.44
7.1.170.0130.02015.48
7.1.160.0160.00315.45
7.1.150.0060.01915.74
7.1.140.0170.01315.73
7.1.130.0100.01815.55
7.1.120.0000.02015.50
7.1.110.0220.00915.43
7.1.100.0080.00716.79
7.1.90.0190.01115.61
7.1.80.0130.01715.49
7.1.70.0070.00916.13
7.1.60.0130.00717.72
7.1.50.0100.01116.07
7.1.40.0210.01015.41
7.1.30.0090.00915.41
7.1.20.0210.00615.38
7.1.10.0150.00515.35
7.1.00.0110.04118.93
7.0.330.0270.00615.02
7.0.320.0100.00315.41
7.0.310.0130.01015.21
7.0.300.0180.00715.40
7.0.290.0120.01215.16
7.0.280.0140.00514.86
7.0.270.0150.01215.28
7.0.260.0130.01815.16
7.0.250.0270.00315.16
7.0.240.0170.00715.34
7.0.230.0210.01015.16
7.0.220.0200.00615.13
7.0.210.0070.01115.39
7.0.200.0110.01415.00
7.0.190.0200.00815.23
7.0.180.0030.01715.17
7.0.170.0160.00315.22
7.0.160.0220.00015.26
7.0.150.0160.01015.12
7.0.140.0140.00715.16
7.0.130.0120.01615.29
7.0.120.0140.01415.40
7.0.110.0120.00815.31
7.0.100.0170.00715.25
7.0.90.0110.01514.94
7.0.80.0110.01215.39
7.0.70.0110.03617.70
7.0.60.0200.02917.49
7.0.50.0110.04117.79
7.0.40.0130.03717.72
7.0.30.0230.02817.87
7.0.20.0120.03617.83
7.0.10.0190.03217.88
7.0.00.0170.03517.89
5.6.400.0220.01014.37
5.6.390.0070.02114.23
5.6.380.0140.01413.86
5.6.370.0190.00514.13
5.6.360.0120.02014.30
5.6.350.0130.01414.14
5.6.340.0190.00814.03
5.6.330.0190.01613.75
5.6.320.0080.00914.14
5.6.310.0170.00314.00
5.6.300.0190.00614.16
5.6.290.0220.01114.16
5.6.280.0140.03717.47
5.6.270.0210.00413.96
5.6.260.0240.00614.00
5.6.250.0070.01014.19
5.6.240.0120.01313.95
5.6.230.0090.00913.91
5.6.220.0160.03417.45
5.6.210.0170.02817.31
5.6.200.0110.03717.52
5.6.190.0240.02717.65
5.6.180.0190.03217.48
5.6.170.0180.02917.54
5.6.160.0170.03617.47
5.6.150.0150.03717.61
5.6.140.0120.03417.44
5.6.130.0260.02817.61
5.6.120.0210.04017.62
5.6.110.0260.03417.46
5.6.100.0160.03517.56
5.6.90.0150.03917.63
5.6.80.0170.02917.29
5.6.70.0170.02817.22
5.6.60.0190.03417.41
5.6.50.0130.04117.29
5.6.40.0210.03117.27
5.6.30.0190.03217.04
5.6.20.0180.03417.22
5.6.10.0110.03717.15
5.6.00.0200.03817.11
5.5.380.0070.01413.84
5.5.370.0200.00514.02
5.5.360.0210.01213.83
5.5.350.0170.03117.35
5.5.340.0160.03217.37
5.5.330.0200.02717.45
5.5.320.0140.03017.29
5.5.310.0140.03317.61
5.5.300.0150.03317.36
5.5.290.0130.04117.46
5.5.280.0260.02917.35
5.5.270.0210.03217.40
5.5.260.0200.03017.55
5.5.250.0130.03517.41
5.5.240.0190.02816.94
5.5.230.0140.03117.08
5.5.220.0110.03417.09
5.5.210.0180.03717.13
5.5.200.0190.03617.02
5.5.190.0220.02917.10
5.5.180.0170.02816.97
5.5.170.0130.00614.16
5.5.160.0150.03317.08
5.5.150.0240.03617.16
5.5.140.0110.04017.01
5.5.130.0190.03216.88
5.5.120.0130.03517.16
5.5.110.0160.02917.01
5.5.100.0150.04017.11
5.5.90.0200.02616.99
5.5.80.0170.03817.09
5.5.70.0250.03917.05
5.5.60.0130.03517.00
5.5.50.0180.03916.95
5.5.40.0190.02517.07
5.5.30.0280.02916.78
5.5.20.0090.04316.94
5.5.10.0190.02816.99
5.5.00.0150.03416.75