3v4l.org

run code in 300+ PHP versions simultaneously
<?php function contextCheck( $context = false ) { # URL Paremeter Checker # If the infomation passed is a string and isn't empty, grab URL paremeter if( !empty( $context ) and is_string( $context ) ) { # Check if the URL Parameter even exists if ( isset( $_GET["{$context}"] ) ) { $URL_Parameter = $_GET["{$context}"]; # If the URL Parameter is a string and isn't empty, return true if( !empty( $URL_Parameter ) and is_string( $URL_Parameter ) ) { return $URL_Parameter; } } } else { return false; } } $_GET['foo' => '12']; $_GET['bar' => '0']; print( contextCheck( 'foo' ) ); print( contextCheck( 'bar' ) ); ?>

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.5.80.5100.04319.32
5.5.70.3370.03719.32
5.5.60.3500.03719.33
5.5.50.3700.04019.29
5.5.40.4100.04019.36
5.5.30.4130.03719.38
5.5.20.4130.03319.35
5.5.10.3530.03319.37
5.5.00.3470.04019.30
5.4.240.4100.04318.95
5.4.230.3770.04319.05
5.4.220.3230.02719.09
5.4.210.3570.04018.98
5.4.200.3770.04318.95
5.4.190.4030.04019.02
5.4.180.3000.03719.04
5.4.170.3330.03718.88
5.4.160.3430.04019.26
5.4.150.3970.03019.02
5.4.140.3970.03716.33
5.4.130.3430.04016.39
5.4.120.3330.03016.54
5.4.110.3400.03716.48
5.4.100.4030.03316.47
5.4.90.3930.03016.30
5.4.80.4100.04016.46
5.4.70.4100.04016.30
5.4.60.4170.03016.27
5.4.50.4130.03716.40
5.4.40.3570.02716.45
5.4.30.3770.03716.43
5.4.20.4070.03716.35
5.4.10.3300.03716.53
5.4.00.4000.04315.77
5.3.280.3170.03314.55
5.3.270.3030.03314.64
5.3.260.4100.03014.56
5.3.250.5270.02714.63
5.3.240.4000.03714.56
5.3.230.3470.04014.61
5.3.220.3270.03014.58
5.3.210.3470.03314.67
5.3.200.3730.02714.66
5.3.190.3830.03314.56
5.3.180.4070.04014.54
5.3.170.3500.03314.52
5.3.160.3930.03314.61
5.3.150.4100.04014.78
5.3.140.4100.04314.55
5.3.130.4030.04014.58
5.3.120.4130.03714.62
5.3.110.3700.02314.61
5.3.100.3500.02714.14
5.3.90.3600.03714.01
5.3.80.3300.03713.93
5.3.70.3570.03014.06
5.3.60.3370.03714.03
5.3.50.3330.04014.02
5.3.40.3370.03313.98
5.3.30.3670.03713.90
5.3.20.4000.03713.68
5.3.10.3430.04013.73
5.3.00.3430.04313.64

preferences:
138.85 ms | 1394 KiB | 7 Q