3v4l.org

run code in 300+ PHP versions simultaneously
<?php $video_id = 'abc'; $vidtype = 'youtube'; if(isset($video_id) && $vidtype == 'youtube') { $lead_in = 'xyz' } var_dump($lead_in);

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)
5.4.260.0070.05318.95
5.4.250.0130.05718.96
5.4.240.0030.05318.90
5.4.230.0070.05319.01
5.4.220.0070.05318.97
5.4.210.0100.05018.77
5.4.200.0130.06318.75
5.4.190.0100.05018.95
5.4.180.0130.04318.99
5.4.170.0100.05018.77
5.4.160.0130.04718.95
5.4.150.0100.05318.93
5.4.140.0070.05016.38
5.4.130.0070.04716.46
5.4.120.0100.05716.42
5.4.110.0100.07016.54
5.4.100.0170.06016.42
5.4.90.0100.04716.48
5.4.80.0070.05016.50
5.4.70.0030.07016.64
5.4.60.0070.06016.39
5.4.50.0030.07316.48
5.4.40.0100.04716.39
5.4.30.0100.04316.54
5.4.20.0130.04716.63
5.4.10.0070.05316.62
5.4.00.0130.04316.02
5.3.280.0100.05714.61
5.3.270.0070.05014.76
5.3.260.0070.05014.49
5.3.250.0000.06014.70
5.3.240.0100.04714.50
5.3.230.0030.05314.48
5.3.220.0070.05014.40
5.3.210.0070.05314.43
5.3.200.0070.05014.58
5.3.190.0200.04014.57
5.3.180.0230.03714.43
5.3.170.0030.05314.26
5.3.160.0070.06314.56
5.3.150.0130.06014.45
5.3.140.0170.06014.41
5.3.130.0030.05314.54
5.3.120.0130.04714.70
5.3.110.0100.05014.61
5.3.100.0070.05014.04
5.3.90.0100.05314.02
5.3.80.0000.05313.72
5.3.70.0100.04713.88
5.3.60.0200.05313.94
5.3.50.0100.04314.04
5.3.40.0100.04713.95
5.3.30.0130.04013.92
5.3.20.0100.04713.73
5.3.10.0070.06713.64
5.3.00.0170.04013.73
5.2.170.0130.03311.08
5.2.160.0070.05011.15
5.2.150.0000.04711.05
5.2.140.0100.03711.05
5.2.130.0130.04311.21
5.2.120.0100.03711.25
5.2.110.0070.03711.19
5.2.100.0070.04310.86
5.2.90.0030.04011.03
5.2.80.0070.04311.00
5.2.70.0100.05711.09
5.2.60.0070.04011.02
5.2.50.0100.03711.13
5.2.40.0070.03711.00
5.2.30.0100.03710.80
5.2.20.0070.05710.95
5.2.10.0070.04310.84
5.2.00.0030.04310.77
5.1.60.0030.0479.77
5.1.50.0030.0379.76
5.1.40.0070.0379.91
5.1.30.0030.04010.41
5.1.20.0070.04310.52
5.1.10.0030.05010.11
5.1.00.0030.0409.92
5.0.50.0030.0308.43
5.0.40.0030.0308.30
5.0.30.0000.0508.45
5.0.20.0070.0238.10
5.0.10.0100.0338.25
5.0.00.0070.0408.10
4.4.90.0030.0206.91
4.4.80.0000.0236.91
4.4.70.0030.0206.91
4.4.60.0070.0176.91
4.4.50.0000.0236.91
4.4.40.0070.0336.91
4.4.30.0030.0206.91
4.4.20.0070.0176.91
4.4.10.0070.0176.91
4.4.00.0000.0376.91
4.3.110.0070.0176.91
4.3.100.0000.0236.91
4.3.90.0030.0236.91
4.3.80.0100.0376.91
4.3.70.0030.0206.91
4.3.60.0070.0206.91
4.3.50.0000.0236.91
4.3.40.0000.0376.91
4.3.30.0000.0236.91
4.3.20.0000.0236.91
4.3.10.0070.0176.91
4.3.00.0170.0309.30

preferences:
137.11 ms | 1386 KiB | 7 Q