3v4l.org

run code in 300+ PHP versions simultaneously
<?php $image = 'hello'; $image = $image == '' ? 'NULL' : "'" . $image . "'"; echo('soy yo'); echo($image);

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.60.0070.00716.63
8.3.50.0120.00522.05
8.3.40.0030.01018.67
8.3.30.0090.00618.43
8.3.20.0080.00020.21
8.3.10.0050.00323.71
8.3.00.0080.00021.02
8.2.180.0140.00418.05
8.2.170.0170.00322.96
8.2.160.0090.00620.19
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0040.00421.18
8.2.110.0030.00622.13
8.2.100.0040.00817.80
8.2.90.0000.00919.11
8.2.80.0050.00317.97
8.2.70.0090.00017.63
8.2.60.0040.00717.93
8.2.50.0050.00318.07
8.2.40.0050.00322.23
8.2.30.0050.00220.63
8.2.20.0070.00017.79
8.2.10.0040.00418.17
8.2.00.0000.00718.06
8.1.280.0130.00725.92
8.1.270.0030.00620.23
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.83
8.1.230.0030.00719.16
8.1.220.0040.00417.77
8.1.210.0090.00018.77
8.1.200.0060.00317.23
8.1.190.0060.00317.25
8.1.180.0060.00318.10
8.1.170.0030.00618.57
8.1.160.0000.00820.67
8.1.150.0070.00018.79
8.1.140.0040.00419.51
8.1.130.0030.00317.61
8.1.120.0070.00017.48
8.1.110.0040.00417.38
8.1.100.0050.00217.45
8.1.90.0030.00517.46
8.1.80.0000.00717.40
8.1.70.0000.00717.33
8.1.60.0050.00317.51
8.1.50.0050.00317.50
8.1.40.0000.00817.48
8.1.30.0050.00317.71
8.1.20.0070.00017.60
8.1.10.0040.00417.45
8.1.00.0050.00217.29
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.29
8.0.270.0030.00317.24
8.0.260.0030.00317.26
8.0.250.0030.00516.96
8.0.240.0070.00016.84
8.0.230.0070.00016.83
8.0.220.0020.00516.77
8.0.210.0070.00016.90
8.0.200.0060.00016.95
8.0.190.0040.00416.89
8.0.180.0040.00416.86
8.0.170.0080.00016.88
8.0.160.0040.00416.88
8.0.150.0030.00316.73
8.0.140.0000.00816.74
8.0.130.0060.00013.26
8.0.120.0040.00416.86
8.0.110.0040.00416.93
8.0.100.0000.00716.78
8.0.90.0070.00016.73
8.0.80.0120.00316.86
8.0.70.0000.00816.85
8.0.60.0040.00416.77
8.0.50.0040.00416.68
8.0.30.0130.00517.06
8.0.20.0140.00617.40
8.0.10.0000.00716.95
8.0.00.0140.00616.76
7.4.330.0030.00315.08
7.4.320.0040.00416.48
7.4.300.0030.00316.39
7.4.290.0080.00316.48
7.4.280.0050.00316.50
7.4.270.0050.00316.61
7.4.260.0040.00416.46
7.4.250.0040.00416.55
7.4.240.0070.00016.43
7.4.230.0000.00716.61
7.4.220.0040.01516.53
7.4.210.0030.01616.66
7.4.200.0020.00516.38
7.4.160.0080.00816.20
7.4.150.0080.01217.40
7.4.140.0050.01617.86
7.4.130.0100.00816.40
7.4.120.0080.00916.46
7.4.110.0100.01016.50
7.4.100.0190.00316.57
7.4.90.0060.01016.35
7.4.80.0130.00619.39
7.4.70.0110.00816.45
7.4.60.0060.01016.51
7.4.50.0040.00816.42
7.4.40.0060.01216.37
7.4.30.0130.00316.56
7.4.00.0120.00314.85
7.3.330.0000.00513.00
7.3.320.0000.00613.19
7.3.310.0000.00616.39
7.3.300.0040.00416.26
7.3.290.0070.00816.24
7.3.280.0100.00816.24
7.3.270.0150.00717.40
7.3.260.0100.01316.21
7.3.250.0070.01616.33
7.3.240.0090.00916.39
7.3.230.0060.01016.58
7.3.210.0040.01816.56
7.3.200.0040.01116.27
7.3.190.0090.00616.28
7.3.180.0060.01016.53
7.3.170.0090.00916.46
7.3.160.0060.01016.54
7.3.10.0060.00616.34
7.3.00.0030.01016.41
7.2.330.0070.01116.68
7.2.320.0110.01016.68
7.2.310.0100.00716.51
7.2.300.0090.01316.58
7.2.290.0070.01016.77
7.2.130.0060.00317.04
7.2.120.0000.01316.68
7.2.110.0080.00416.96
7.2.100.0000.01716.77
7.2.90.0070.00717.00
7.2.80.0030.01116.92
7.2.70.0030.00716.75
7.2.60.0060.00616.99
7.2.50.0040.00717.07
7.2.40.0060.00617.07
7.2.30.0000.01516.86
7.2.20.0070.00716.72
7.2.10.0040.01116.67
7.2.00.0030.01018.23
7.1.250.0070.00715.55
7.1.200.0040.00915.70
7.1.100.0060.00618.03
7.1.70.0040.00417.14
7.1.60.0130.01019.52
7.1.50.0090.01216.91
7.1.00.0030.07322.27
7.0.200.0000.00716.75
7.0.60.0030.09019.95
7.0.50.0070.06717.82
7.0.40.0030.05019.96
7.0.30.0230.05020.30
7.0.20.0330.07720.09
7.0.10.0100.07320.16
7.0.00.0130.04720.11
5.6.280.0030.06321.14
5.6.210.0270.05020.50
5.6.200.0030.04318.21
5.6.190.0170.08020.63
5.6.180.0200.03720.64
5.6.170.0300.06320.38
5.6.160.0130.08320.43
5.6.150.0030.08318.19
5.6.140.0070.06318.18
5.6.130.0100.06718.12
5.6.120.0100.07320.99
5.6.110.0030.04021.13
5.6.100.0100.06321.13
5.6.90.0000.06320.99
5.6.80.0130.07320.38
5.5.350.3100.03720.40
5.5.340.0100.08317.96
5.5.330.0070.08320.20
5.5.320.0330.06320.42
5.5.310.0330.07020.21
5.5.300.0170.07017.91
5.5.290.0070.08017.95
5.5.280.0070.08320.84
5.5.270.0130.07320.63
5.5.260.0070.05320.75
5.5.250.0130.07020.61
5.5.240.4170.04020.34

preferences:
41.14 ms | 401 KiB | 5 Q