3v4l.org

run code in 300+ PHP versions simultaneously
<?php $val = 'someprefix3333'; if($val > 0){ echo $val . ' is greater than 0'; } else { echo $val . ' is NOT greater than 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.2.10.0030.00319.29
8.2.00.0070.00019.30
8.1.140.0000.00818.75
8.1.130.0000.00720.13
8.1.120.0040.00417.35
8.1.110.0060.00317.42
8.1.100.0040.00417.49
8.1.90.0070.00017.41
8.1.80.0030.00317.47
8.1.70.0000.00617.50
8.1.60.0040.00417.54
8.1.50.0040.00417.54
8.1.40.0040.00417.52
8.1.30.0080.00017.66
8.1.20.0050.00317.48
8.1.10.0040.00717.46
8.1.00.0000.00717.45
8.0.260.0000.00818.41
8.0.250.0070.00016.87
8.0.240.0040.00416.82
8.0.230.0000.00616.92
8.0.220.0000.00716.76
8.0.210.0000.00816.85
8.0.200.0030.00316.93
8.0.190.0000.00816.84
8.0.180.0000.00816.81
8.0.170.0000.00816.94
8.0.160.0080.00316.85
8.0.150.0030.00616.81
8.0.140.0020.00516.86
8.0.130.0000.00513.32
8.0.120.0040.00416.86
8.0.110.0030.00516.70
8.0.100.0040.00416.85
8.0.90.0030.00516.79
8.0.80.0080.00816.89
8.0.70.0030.00616.90
8.0.60.0030.00316.88
8.0.50.0050.00216.75
8.0.30.0130.00616.80
8.0.20.0110.00717.14
8.0.10.0050.00217.02
8.0.00.0070.01416.98
7.4.330.0050.00015.55
7.4.320.0060.00016.64
7.4.300.0030.00316.52
7.4.290.0080.00016.53
7.4.280.0040.00416.55
7.4.270.0070.00016.50
7.4.260.0000.00613.29
7.4.250.0070.00016.37
7.4.240.0000.00816.53
7.4.230.0030.00316.60
7.4.220.0020.00516.59
7.4.210.0080.00816.62
7.4.200.0040.00416.34
7.4.130.0080.01216.53
7.4.120.0120.00916.64
7.4.110.0110.00716.49
7.4.100.0110.00916.51
7.4.90.0130.00416.12
7.4.80.0110.00816.45
7.4.70.0060.01216.39
7.4.60.0120.00816.36
7.4.50.0080.00916.41
7.4.40.0070.01116.29
7.4.30.0080.00816.34
7.4.20.0090.00816.54
7.4.10.0110.00616.32
7.4.00.0060.01116.56
7.3.330.0030.00316.01
7.3.320.0050.00013.05
7.3.310.0000.00616.00
7.3.300.0040.00416.25
7.3.290.0090.01016.24
7.3.260.0100.01016.14
7.3.230.0060.01216.50
7.3.220.0120.00816.21
7.3.210.0090.00916.16
7.3.200.0120.00716.16
7.3.190.0100.00916.31
7.3.180.0060.01316.30
7.3.170.0110.00816.24
7.3.160.0020.01416.24
7.3.150.0120.00716.17
7.3.140.0140.00816.31
7.3.130.0140.00716.28
7.3.120.0070.01216.21
7.3.110.0070.01116.07
7.3.100.0150.00616.24
7.3.90.0080.00916.37
7.3.80.0110.00616.40
7.3.70.0110.00816.25
7.3.60.0140.00716.23
7.3.50.0100.00716.25
7.3.40.0080.01016.31
7.3.30.0140.00616.37
7.3.20.0170.00416.33
7.3.10.0100.01016.29
7.3.00.0060.01216.35
7.2.330.0070.01316.54
7.2.320.0100.00916.54
7.2.310.0090.00916.69
7.2.300.0040.01516.48
7.2.290.0070.01016.64
7.2.280.0160.00516.53
7.2.270.0100.00616.48
7.2.260.0130.00516.52
7.2.250.0090.00916.53
7.2.240.0100.00816.41
7.2.230.0070.01016.43
7.2.220.0110.00916.49
7.2.210.0070.01016.68
7.2.200.0100.00816.56
7.2.190.0090.01216.45
7.2.180.0100.00916.60
7.2.170.0080.01416.51
7.2.160.0120.00516.52
7.2.150.0160.00716.45
7.2.140.0240.00316.69
7.2.130.0130.00916.45
7.2.120.0130.00616.45
7.2.110.0110.00816.60
7.2.100.0130.00416.66
7.2.90.0110.00916.58
7.2.80.0110.00716.52
7.2.70.0090.01316.50
7.2.60.0090.00916.61
7.2.50.0140.00416.53
7.2.40.0120.00916.66
7.2.30.0090.01016.60
7.2.20.0110.01016.76
7.2.10.0120.00816.59
7.2.00.0080.01116.38

preferences:
67.17 ms | 403 KiB | 5 Q