3v4l.org

run code in 300+ PHP versions simultaneously
<?php $count = 21; $target = 20; $yoda = (int)$target <= $count; $non_yoda = (int) $count >= $target; echo "Yoda: $yoda\n"; echo "Non Yoda: $non_yoda\n";

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.0040.00416.80
8.3.120.0080.00019.03
8.3.110.0100.01020.94
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0000.00916.50
8.3.70.0170.00316.58
8.3.60.0100.01018.38
8.3.50.0040.01120.18
8.3.40.0070.00718.64
8.3.30.0120.00618.94
8.3.20.0030.00624.18
8.3.10.0070.00024.66
8.3.00.0000.00826.16
8.2.250.0040.00416.63
8.2.240.0120.00618.61
8.2.230.0000.00922.58
8.2.220.0060.01337.54
8.2.210.0060.00326.77
8.2.200.0040.00816.50
8.2.190.0100.01018.41
8.2.180.0000.01525.92
8.2.170.0140.00322.96
8.2.160.0030.01022.96
8.2.150.0070.00025.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0070.00021.25
8.2.110.0070.00320.09
8.2.100.0040.00819.76
8.2.90.0000.00817.75
8.2.80.0040.00418.78
8.2.70.0000.00817.50
8.2.60.0000.00817.50
8.2.50.0050.00317.98
8.2.40.0050.00318.16
8.2.30.0040.00417.96
8.2.20.0000.00820.39
8.2.10.0030.00518.04
8.2.00.0040.00419.26
8.1.300.0110.00818.12
8.1.290.0060.00618.88
8.1.280.0070.00725.92
8.1.270.0060.00323.99
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00621.00
8.1.230.0060.00617.70
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0050.00317.36
8.1.190.0080.00017.23
8.1.180.0080.00018.10
8.1.170.0040.00417.62
8.1.160.0040.00420.73
8.1.150.0000.00718.50
8.1.140.0070.00017.44
8.1.130.0000.00718.88
8.1.120.0040.00417.37
8.1.110.0040.00417.37
8.1.100.0070.00017.47
8.1.90.0040.00417.46
8.1.80.0040.00417.30
8.1.70.0060.00417.44
8.1.60.0000.01117.45
8.1.50.0050.00517.52
8.1.40.0060.00617.40
8.1.30.0060.00717.64
8.1.20.0180.00217.59
8.1.10.0120.00717.51
8.1.00.0160.00017.41
8.0.300.0020.00518.78
8.0.290.0040.00416.58
8.0.280.0000.00818.42
8.0.270.0000.00816.81
8.0.260.0040.00418.44
8.0.250.0070.00016.92
8.0.240.0000.00816.97
8.0.230.0030.00316.94
8.0.220.0000.00716.89
8.0.210.0040.00416.90
8.0.200.0100.00416.73
8.0.190.0120.00016.86
8.0.180.0050.00916.73
8.0.170.0000.01316.69
8.0.160.0060.01116.77
8.0.150.0090.00416.85
8.0.140.0100.00516.80
8.0.130.0050.00516.79
8.0.120.0120.00216.75
8.0.110.0040.00816.70
8.0.100.0050.00816.81
8.0.90.0100.00816.86
8.0.80.0150.00016.84
8.0.70.0130.00316.78
8.0.60.0090.00616.84
8.0.50.0100.00516.80
8.0.30.0080.00816.89
8.0.20.0120.00316.82
8.0.10.0150.00017.01
7.4.330.0030.00315.55
7.4.320.0000.00616.63
7.4.300.0180.00016.43
7.4.290.0080.00316.47
7.4.280.0200.00016.50
7.4.270.0100.00816.59
7.4.260.0130.00516.49
7.4.250.0110.00816.51
7.4.240.0110.00916.48
7.4.230.0000.01416.48
7.4.220.0130.00516.56
7.4.210.0140.00316.56
7.4.200.0100.00716.34
7.4.190.0100.00816.62
7.4.180.0160.00016.63
7.4.160.0040.01316.43
7.4.150.0080.00816.51
7.4.140.0120.00516.47
7.4.130.0080.00816.54
7.4.120.0140.00316.42
7.4.110.0150.00316.50
7.4.100.0120.00616.59
7.4.90.0040.01216.49
7.4.80.0090.00616.43
7.4.70.0160.00416.36
7.4.60.0080.01216.35
7.4.50.0070.01016.49
7.4.40.0130.00416.44
7.4.30.0120.00416.41
7.4.20.0120.00416.43
7.4.10.0160.00016.38
7.4.00.0060.01016.49
4.3.00.0010.00314.25

preferences:
51.16 ms | 403 KiB | 5 Q