3v4l.org

run code in 300+ PHP versions simultaneously
<?php function withoutNativeTypesLoose($arg) { printf("%s: %s is %s\n", __FUNCTION__, var_export($arg, true), $arg ? 'truthy' : 'falsy'); } function withoutNativeTypesStrict($arg) { printf("%s: %s is %s\n", __FUNCTION__, var_export($arg, true), $arg === true ? 'truthy' : 'falsy'); } function withNativeTypes(bool $arg): void { printf("%s: %s is %s\n", __FUNCTION__, var_export($arg, true), $arg ? 'truthy' : 'falsy'); } withoutNativeTypesLoose(true); withoutNativeTypesLoose(false); withoutNativeTypesLoose(1); withoutNativeTypesLoose(0); withoutNativeTypesStrict(true); withoutNativeTypesStrict(false); withoutNativeTypesStrict(1); withoutNativeTypesStrict(0); withNativeTypes(true); withNativeTypes(false); withNativeTypes(1); withNativeTypes(0);

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.5.00.0110.01019.75
8.4.150.0010.00014.05
8.4.140.0140.00617.43
8.4.130.0090.01217.59
8.4.120.0130.00819.59
8.4.110.0120.00817.66
8.4.100.0140.00717.58
8.4.90.0100.00920.44
8.4.80.0050.00718.81
8.4.70.0070.01317.94
8.4.60.0100.01018.96
8.4.50.0100.01020.23
8.4.40.0150.00417.82
8.4.30.0120.00618.76
8.4.20.0100.01017.89
8.4.10.0040.00419.54
8.3.280.0150.01118.31
8.3.270.0090.01016.28
8.3.260.0100.00616.53
8.3.250.0100.01018.21
8.3.240.0060.00316.41
8.3.230.0150.00416.47
8.3.220.0140.00418.63
8.3.210.0050.00416.43
8.3.200.0050.00416.59
8.3.190.0060.00517.03
8.3.180.0120.00617.10
8.3.170.0070.01318.96
8.3.160.0150.00417.19
8.3.150.0040.01417.27
8.3.140.0120.00618.40
8.3.130.0100.00018.31
8.3.120.0070.01120.73
8.3.110.0080.00020.94
8.3.100.0080.00024.06
8.3.90.0150.00026.77
8.3.80.0030.00618.18
8.3.70.0120.00318.30
8.3.60.0110.00716.63
8.3.50.0110.01116.64
8.3.40.0120.00621.94
8.3.30.0000.01419.21
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0070.00026.16
8.2.290.0130.00816.79
8.2.280.0100.01018.39
8.2.270.0070.01116.96
8.2.260.0000.00716.53
8.2.250.0040.00416.72
8.2.240.0060.00317.09
8.2.230.0000.00822.58
8.2.220.0040.00437.54
8.2.210.0090.00626.77
8.2.200.0000.00816.75
8.2.190.0100.01016.63
8.2.180.0100.00616.63
8.2.170.0060.00918.49
8.2.160.0090.00922.96
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.11
8.2.110.0150.00920.49
8.2.100.0080.00318.68
8.2.90.0120.00018.83
8.2.80.0100.00018.47
8.2.70.0000.01018.76
8.2.60.0160.00418.65
8.2.50.0080.00418.30
8.2.40.0100.00018.72
8.2.30.0070.00318.33
8.2.20.0030.01018.58
8.2.10.0070.00318.65
8.2.00.0070.00318.76
8.1.330.0090.01015.86
8.1.320.0100.00916.10
8.1.310.0060.00316.53
8.1.300.0040.00418.00
8.1.290.0090.00330.84
8.1.280.0100.01025.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0030.00718.43
8.1.230.0030.00718.19
8.1.220.0110.00018.36
8.1.210.0040.00719.75
8.1.200.0030.00720.27
8.1.190.0090.00018.30
8.1.180.0000.01018.26
8.1.170.0080.00318.48
8.1.160.0070.00318.36
8.1.150.0070.00318.63
8.1.140.0030.00818.42
8.1.130.0080.00318.35
8.1.120.0060.00318.56
8.1.110.0100.00018.41
8.1.100.0060.00318.50
8.1.90.0070.00418.51
8.1.80.0070.00318.18
8.1.70.0100.00018.40
8.1.60.0030.00718.51
8.1.50.0000.01018.46
8.1.40.0100.00018.55
8.1.30.0030.00718.74
8.1.20.0070.00318.66
8.1.10.0080.00318.64
8.1.00.0070.00318.59
8.0.300.0030.00717.95
8.0.290.0100.00017.75
8.0.280.0030.00717.87
8.0.270.0090.00317.77
8.0.260.0060.00317.74
8.0.250.0070.00317.86
8.0.240.0100.00017.86
8.0.230.0030.00717.77
8.0.220.0100.00018.02
8.0.210.0030.00617.78
8.0.200.0090.00017.84
8.0.190.0090.00017.87
8.0.180.0030.00617.83
8.0.170.0030.00717.93
8.0.160.0030.00718.02
8.0.150.0060.00317.90
8.0.140.0030.00717.75
8.0.130.0040.00417.88
8.0.120.0030.00617.81
8.0.110.0090.00017.99
8.0.100.0040.00417.87
8.0.90.0040.00417.82
8.0.80.0060.00317.83
8.0.70.0030.00618.00
8.0.60.0040.00417.75
8.0.50.0030.00717.83
8.0.30.0030.00617.99
8.0.20.0030.00617.91
8.0.10.0090.00018.08

preferences:
29.29 ms | 403 KiB | 5 Q