3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=0); var_dump("" == 0); var_dump("foo" == 0); var_dump("1foo" == 1); var_dump(" 1" == 1); var_dump("0001" == 1); var_dump(" 1 " == 1); var_dump("foo1" == 1);

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.130.0030.00618.38
8.3.120.0060.00318.89
8.3.110.0090.00920.94
8.3.100.0090.00024.06
8.3.90.0120.00626.77
8.3.80.0000.00916.63
8.3.70.0060.01216.58
8.3.60.0070.00718.43
8.3.50.0030.01318.02
8.3.40.0150.00718.71
8.3.30.0100.01018.43
8.3.20.0070.00024.18
8.3.10.0000.00824.66
8.3.00.0080.00026.16
8.2.250.0030.00616.32
8.2.240.0090.00618.77
8.2.230.0060.00322.58
8.2.220.0040.01137.54
8.2.210.0000.00826.77
8.2.200.0090.00016.38
8.2.190.0070.00716.58
8.2.180.0060.01225.92
8.2.170.0150.00422.96
8.2.160.0030.01022.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0070.00021.13
8.2.110.0080.00419.30
8.2.100.0060.00619.51
8.2.90.0060.00318.92
8.2.80.0050.00317.97
8.2.70.0030.00617.38
8.2.60.0000.00817.91
8.2.50.0030.00518.07
8.2.40.0080.00018.22
8.2.30.0030.00517.93
8.2.20.0040.00417.93
8.2.10.0050.00318.99
8.2.00.0040.00418.98
8.1.300.0050.00315.90
8.1.290.0060.00318.88
8.1.280.0070.01125.92
8.1.270.0000.00723.99
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0090.00020.55
8.1.230.0070.00417.46
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.13
8.1.180.0000.00818.10
8.1.170.0090.00018.41
8.1.160.0000.00818.62
8.1.150.0040.00718.75
8.1.140.0040.00420.54
8.1.130.0000.00720.07
8.1.120.0000.00717.36
8.1.110.0030.00317.30
8.1.100.0030.00617.32
8.1.90.0000.00717.35
8.1.80.0040.00717.31
8.1.70.0040.00417.34
8.1.60.0070.00017.48
8.1.50.0000.00717.27
8.1.40.0020.00517.27
8.1.30.0090.00017.43
8.1.20.0040.00417.57
8.1.10.0080.00017.25
8.1.00.0040.00417.36
8.0.300.0050.00318.77
8.0.290.0040.00416.63
8.0.280.0040.00418.23
8.0.270.0030.00317.94
8.0.260.0030.00318.56
8.0.250.0000.00616.75
8.0.240.0000.00616.72
8.0.230.0030.00316.84
8.0.220.0020.00516.68
8.0.210.0080.00016.75
8.0.200.0040.00416.78
8.0.190.0000.00816.70
8.0.180.0000.00716.86
8.0.170.0000.00816.84
8.0.160.0030.00616.87
8.0.150.0030.00316.61
8.0.140.0080.00016.68
8.0.130.0000.00813.18
8.0.120.0040.00416.75
8.0.110.0050.00216.75
8.0.100.0000.00716.80
8.0.90.0000.00716.64
8.0.80.0090.00616.74
8.0.70.0040.00416.75
8.0.60.0000.00716.70
8.0.50.0060.00316.73
8.0.30.0240.00616.73
8.0.20.0220.00816.81
8.0.10.0160.01616.82
8.0.00.0080.00816.80
7.4.330.0000.00615.55
7.4.320.0030.00316.27
7.4.300.0060.00016.47
7.4.290.0070.00016.42
7.4.280.0030.00616.37
7.4.270.0000.00616.28
7.4.260.0000.00613.05
7.4.250.0040.00416.38
7.4.240.0050.00216.41
7.4.230.0000.00716.49
7.4.220.0030.00316.39
7.4.210.0140.00016.50
7.4.200.0050.00216.11
7.4.160.0190.01316.31
7.4.150.0160.01216.34
7.4.140.0220.00816.34
7.4.130.0250.00316.23
7.4.120.0190.01016.06
7.4.110.0200.00716.19
7.4.100.0180.00916.21
7.4.90.0190.00616.15
7.4.80.0170.01416.09
7.4.70.0240.00416.12
7.4.60.0210.00916.03
7.4.50.0210.01016.18
7.4.40.0170.01316.12
7.4.30.0190.01316.18
7.4.20.0180.01116.26
7.4.10.0260.00716.19
7.4.00.0180.00916.14
7.3.330.0000.00616.05
7.3.320.0000.00613.06
7.3.310.0050.00216.27
7.3.300.0000.00716.07
7.3.290.0030.00316.12
7.3.280.0090.00916.16
7.3.270.0260.00916.08
7.3.260.0230.00316.03
7.3.250.0230.00716.02
7.3.240.0210.00716.10
7.3.230.0160.01016.07
7.3.220.0280.00616.02
7.3.210.0260.00415.98
7.3.200.0210.00815.97
7.3.190.0350.00016.04
7.3.180.0180.01516.05
7.3.170.0260.01315.96
7.3.160.0280.00915.95
7.3.150.0230.00715.98
7.3.140.0180.00915.93
7.3.130.0290.00515.98
7.3.120.0220.00416.00
7.3.110.0190.00815.96
7.3.100.0230.00715.88
7.3.90.0200.01516.16
7.3.80.0230.01016.00
7.3.70.0190.01116.16
7.3.60.0270.00816.22
7.3.50.0200.01316.19
7.3.40.0120.01816.13
7.3.30.0300.00716.11
7.3.20.0150.01116.20
7.3.10.0230.00916.16
7.3.00.0270.00616.10

preferences:
28.65 ms | 403 KiB | 5 Q