3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(!empty("0")) { echo "in if"; } else { echo "not in if"; } if(!"0") { echo "in if"; } else { echo "not in if"; }

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.110.0080.00320.94
8.3.100.0060.01016.38
8.3.90.0040.00416.41
8.3.80.0030.00618.27
8.3.70.0110.00716.63
8.3.60.0110.00718.56
8.3.50.0130.00718.13
8.3.40.0100.00718.71
8.3.30.0040.01118.72
8.3.20.0080.00021.73
8.3.10.0040.00421.85
8.3.00.0000.00721.77
8.2.230.0030.00722.58
8.2.220.0070.00024.06
8.2.210.0130.00626.77
8.2.200.0030.00618.11
8.2.190.0070.00716.58
8.2.180.0110.00318.55
8.2.170.0070.00722.96
8.2.160.0000.01320.35
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00517.91
8.2.110.0040.00422.11
8.2.100.0040.00717.84
8.2.90.0050.00317.93
8.2.80.0160.00018.29
8.2.70.0070.00317.50
8.2.60.0000.00817.63
8.2.50.0000.00817.63
8.2.40.0070.00019.25
8.2.30.0050.00520.49
8.2.20.0040.00417.98
8.2.10.0000.00719.28
8.2.00.0050.00217.80
8.1.290.0000.00818.88
8.1.280.0140.00725.92
8.1.270.0070.00022.11
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00323.98
8.1.230.0080.00321.04
8.1.220.0000.00818.59
8.1.210.0050.00318.77
8.1.200.0030.00617.40
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0000.00918.50
8.1.160.0040.00418.71
8.1.150.0000.00718.67
8.1.140.0000.00718.82
8.1.130.0050.00220.18
8.1.120.0070.00017.28
8.1.110.0000.00717.35
8.1.100.0080.00017.23
8.1.90.0020.00517.32
8.1.80.0090.00017.25
8.1.70.0030.00317.22
8.1.60.0000.00717.33
8.1.50.0050.00317.32
8.1.40.0050.00317.26
8.1.30.0000.00817.53
8.1.20.0000.00817.41
8.1.10.0000.00717.46
8.1.00.0040.00417.30
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00718.36
8.0.270.0000.00717.06
8.0.260.0040.00418.24
8.0.250.0040.00416.77
8.0.240.0000.00616.92
8.0.230.0040.00416.81
8.0.220.0050.00516.88
8.0.210.0000.00816.71
8.0.200.0000.00616.87
8.0.190.0070.00016.89
8.0.180.0040.00416.84
8.0.170.0030.00616.88
8.0.160.0020.00616.80
8.0.150.0040.00416.79
8.0.140.0070.00016.69
8.0.130.0050.00013.21
8.0.120.0000.00816.80
8.0.110.0050.00216.80
8.0.100.0000.00816.70
8.0.90.0040.00416.88
8.0.80.0090.00616.79
8.0.70.0040.00416.66
8.0.60.0040.00416.81
8.0.50.0000.00716.82
8.0.30.0100.01016.85
8.0.20.0130.00616.86
8.0.10.0000.00817.04
8.0.00.0090.00916.64
7.4.330.0000.00516.83
7.4.320.0000.00616.47
7.4.300.0060.00016.36
7.4.290.0080.00016.43
7.4.280.0000.00716.35
7.4.270.0070.00016.38
7.4.260.0080.00016.25
7.4.250.0070.00016.43
7.4.240.0000.00716.48
7.4.230.0080.00016.48
7.4.220.0000.00716.36
7.4.210.0110.00516.45
7.4.200.0000.00816.25
7.4.160.0110.00716.41
7.4.130.0090.01316.34
7.4.120.0060.01116.39
7.4.110.0110.00616.24
7.4.100.0120.00616.48
7.4.90.0150.00416.34
7.4.80.0060.01819.39
7.4.70.0060.01016.23
7.4.60.0070.01016.47
7.4.50.0130.00316.44
7.4.40.0030.01416.32
7.4.00.0070.01014.89
7.3.330.0030.00313.05
7.3.320.0000.00513.07
7.3.310.0070.00016.13
7.3.300.0000.00716.03
7.3.290.0040.00416.18
7.3.280.0080.01116.12
7.3.260.0140.00716.20
7.3.240.0100.00916.34
7.3.230.0100.00716.44
7.3.210.0180.00016.18
7.3.200.0110.00716.22
7.3.190.0090.00616.22
7.3.180.0150.00016.16
7.3.170.0130.00916.32
7.3.160.0140.00316.43
7.3.40.0030.01214.62
7.3.30.0120.00914.64
7.3.20.0100.00314.72
7.3.10.0100.00314.84
7.3.00.0100.00314.71
7.2.330.0000.01616.53
7.2.320.0090.00916.14
7.2.310.0100.01416.37
7.2.300.0090.01316.61
7.2.290.0190.00516.54
7.2.170.0030.00814.95
7.2.160.0070.00714.95
7.2.150.0100.00314.93
7.2.140.0110.00814.80
7.2.130.0130.00614.77
7.2.120.0230.00014.93
7.2.110.0080.00514.74
7.2.100.0140.01115.09
7.2.90.0100.00314.98
7.2.80.0170.00314.46
7.2.70.0070.00714.99
7.2.60.0210.01014.86
7.2.50.0200.00314.90
7.2.40.0060.00914.82
7.2.30.0100.00314.96
7.2.20.0170.00314.74
7.2.10.0990.00314.53
7.2.00.0130.00014.76
7.1.280.0060.00913.64
7.1.270.0060.00613.81
7.1.260.0110.00713.76
7.1.250.0100.00313.96

preferences:
66.13 ms | 403 KiB | 5 Q