3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump((int)'0'); var_dump((int)''); var_dump((int)null);

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.90.0090.00618.02
8.3.80.0090.00017.97
8.3.70.0000.01518.30
8.3.60.0130.00318.31
8.3.50.0090.00916.72
8.3.40.0130.00722.22
8.3.30.0070.01121.61
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.200.0100.00016.50
8.2.190.0150.00016.62
8.2.180.0080.01116.38
8.2.170.0170.00318.97
8.2.160.0100.00722.96
8.2.150.0040.01125.66
8.2.140.0040.00424.66
8.2.130.0040.01426.16
8.2.120.0050.00319.41
8.2.110.0150.00620.39
8.2.100.0090.00919.11
8.2.90.0140.00018.66
8.2.80.0110.00020.42
8.2.70.0120.00020.41
8.2.60.0040.00718.82
8.2.50.0090.00318.63
8.2.40.0060.00620.60
8.2.30.0080.00420.13
8.2.20.0040.00818.45
8.2.10.0100.00018.93
8.2.00.0100.00220.73
8.1.290.0100.00018.88
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00620.27
8.1.230.0030.00618.43
8.1.220.0000.01018.37
8.1.210.0030.00719.74
8.1.200.0030.00618.42
8.1.190.0070.00318.16
8.1.180.0100.00020.04
8.1.170.0030.00918.48
8.1.160.0070.00420.40
8.1.150.0070.00320.44
8.1.140.0080.00318.24
8.1.130.0040.00720.17
8.1.120.0040.00718.55
8.1.110.0000.01018.38
8.1.100.0040.00818.55
8.1.90.0040.00720.28
8.1.80.0030.00720.28
8.1.70.0080.00320.45
8.1.60.0060.00620.33
8.1.50.0040.00720.38
8.1.40.0040.00718.37
8.1.30.0110.00020.74
8.1.20.0110.00018.64
8.1.10.0070.00318.65
8.1.00.0080.00318.48
8.0.300.0060.00317.68
8.0.290.0020.00717.63
8.0.280.0040.00719.46
8.0.270.0070.00417.84
8.0.260.0040.00720.00
8.0.250.0030.00717.61
8.0.240.0080.00419.59
8.0.230.0100.00019.98
8.0.220.0050.00519.54
8.0.210.0100.00019.51
8.0.200.0070.00419.52
8.0.190.0060.00319.19
8.0.180.0070.00417.70
8.0.170.0070.00319.70
8.0.160.0060.00617.35
8.0.150.0080.00417.34
8.0.140.0040.00917.49
8.0.130.0060.00619.65
8.0.120.0140.00017.69
8.0.110.0090.00417.89
8.0.100.0030.01017.58
8.0.90.0080.00617.61
8.0.80.0050.00917.80
8.0.70.0110.00317.61
8.0.60.0040.00817.71
8.0.50.0030.01019.55
8.0.30.0090.00319.75
8.0.20.0090.00517.63
8.0.10.0110.00317.64

preferences:
27.39 ms | 401 KiB | 5 Q