3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response[0]['status2']= 'sent2'; //$response = array('status'=>'bla'); //log_message('error', var_export($response, true)); //log_message('error', var_export($response[0]["status"], true)); switch (@$response[0]["status"]) { default: case 'error': case 'rejected': case 'invalid': if (array_key_exists("reject_reason", $response)) { echo '$this->_set_error_message(\'Error\', $response["reject_reason"]);'; } else { echo '$this->_set_error_message(\'Error\', "Unknown response");'; } die('return FALSE'); break; case 'quoted': case 'scheduled': case 'sent': die('return TRUE'); break; } echo 'return nic';

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.0040.01118.43
8.3.50.0120.00622.00
8.3.40.0120.00318.74
8.3.30.0030.01019.26
8.3.20.0060.00320.07
8.3.10.0100.00018.91
8.3.00.0030.00519.38
8.2.180.0090.01216.88
8.2.170.0140.00022.96
8.2.160.0100.00720.23
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00821.10
8.2.110.0100.00020.58
8.2.100.0060.00619.67
8.2.90.0080.00018.22
8.2.80.0040.00417.97
8.2.70.0030.00517.75
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0030.00618.22
8.2.30.0000.00719.51
8.2.20.0030.00517.84
8.2.10.0000.00718.17
8.2.00.0000.00817.86
8.1.280.0100.01025.92
8.1.270.0000.00823.85
8.1.260.0090.00026.35
8.1.250.0030.00528.09
8.1.240.0000.01022.64
8.1.230.0050.00520.96
8.1.220.0050.00317.77
8.1.210.0030.00618.79
8.1.200.0030.00617.35
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0000.00818.50
8.1.160.0040.00421.96
8.1.150.0040.00418.83
8.1.140.0040.00417.49
8.1.130.0070.00017.86
8.1.120.0070.00017.50
8.1.110.0030.00517.50
8.1.100.0000.00717.55
8.1.90.0030.00417.52
8.1.80.0000.00717.54
8.1.70.0080.00017.45
8.1.60.0080.00017.62
8.1.50.0050.00317.56
8.1.40.0070.00017.53
8.1.30.0090.00017.66
8.1.20.0030.00517.66
8.1.10.0080.00017.61
8.1.00.0000.00717.56
8.0.300.0050.00319.98
8.0.290.0070.00016.75
8.0.280.0030.00318.55
8.0.270.0030.00317.34
8.0.260.0000.00717.35
8.0.250.0050.00216.95
8.0.240.0040.00417.02
8.0.230.0040.00417.06
8.0.220.0000.00716.89
8.0.210.0060.00016.95
8.0.200.0030.00317.00
8.0.190.0040.00417.11
8.0.180.0040.00417.02
8.0.170.0050.00316.90
8.0.160.0040.00416.92
8.0.150.0030.00416.86
8.0.140.0050.00217.00
8.0.130.0030.00313.39
8.0.120.0040.00416.98
8.0.110.0020.00516.89
8.0.100.0030.00516.98
8.0.90.0050.00317.10
8.0.80.0090.00616.89
8.0.70.0070.00016.80
8.0.60.0060.00316.88
8.0.50.0030.00516.81
8.0.30.0110.01117.21
8.0.20.0120.00817.41
8.0.10.0050.00217.12
8.0.00.0050.01516.69
7.4.330.0050.00015.07
7.4.320.0060.00016.68
7.4.300.0070.00016.64
7.4.290.0040.00716.52
7.4.280.0070.00016.53
7.4.270.0000.00716.65
7.4.260.0030.00316.54
7.4.250.0080.00016.64
7.4.240.0040.00316.59
7.4.230.0030.00316.70
7.4.220.0060.01516.70
7.4.210.0070.01416.60
7.4.200.0000.00816.74
7.4.160.0120.00316.55
7.4.150.0090.00917.40
7.4.140.0090.01017.86
7.4.130.0080.00916.57
7.4.120.0070.01216.52
7.4.110.0080.00816.67
7.4.100.0070.01516.64
7.4.90.0090.00816.58
7.4.80.0170.00719.39
7.4.70.0070.01016.60
7.4.60.0100.00716.41
7.4.50.0000.00816.64
7.4.40.0000.01716.64
7.4.30.0130.00316.59
7.4.00.0100.00714.85
7.3.330.0020.00213.25
7.3.320.0000.00513.13
7.3.310.0070.00016.18
7.3.300.0030.00316.32
7.3.290.0100.00916.38
7.3.280.0080.00916.34
7.3.270.0140.00317.40
7.3.260.0120.00616.59
7.3.250.0150.00516.40
7.3.240.0060.01116.38
7.3.230.0000.01616.46
7.3.210.0100.00716.39
7.3.200.0040.01919.39
7.3.190.0090.00616.28
7.3.180.0110.00416.41
7.3.170.0120.00516.53
7.3.160.0040.01216.48
7.3.120.0060.01015.56
7.3.110.0070.01015.70
7.3.100.0080.00615.65
7.3.90.0060.00615.66
7.3.80.0050.00915.59
7.3.70.0040.00815.55
7.3.60.0110.00415.61
7.3.50.0090.00415.58
7.3.40.0050.00915.59
7.3.30.0080.00615.63
7.3.20.0020.01016.81
7.3.10.0080.00716.83
7.3.00.0030.00916.68
7.2.330.0070.01016.79
7.2.320.0120.00616.49
7.2.310.0130.00316.75
7.2.300.0140.01016.70
7.2.290.0070.01016.55
7.2.250.0090.00814.97
7.2.240.0050.01015.77
7.2.230.0090.00815.72
7.2.220.0040.00915.78
7.2.210.0040.01015.81
7.2.200.0040.00915.82
7.2.190.0030.01315.76
7.2.180.0050.00915.73
7.2.170.0060.00815.79
7.2.160.0080.00816.16
7.2.150.0050.01017.10
7.2.140.0040.00916.97
7.2.130.0040.01117.17
7.2.120.0050.01117.03
7.2.110.0060.00917.00
7.2.100.0070.00717.11
7.2.90.0080.00717.09
7.2.80.0080.00717.01
7.2.70.0040.00917.18
7.2.60.0080.00616.83
7.2.50.0050.01016.89
7.2.40.0040.01017.11
7.2.30.0040.00917.04
7.2.20.0090.00416.96
7.2.10.0080.00717.07
7.2.00.0060.00717.54
7.1.330.0100.00516.20
7.1.320.0040.00916.23
7.1.310.0050.00916.29
7.1.300.0070.00816.26
7.1.290.0070.00616.12
7.1.280.0040.01016.24
7.1.270.0060.00916.24
7.1.260.0040.01116.24
7.1.250.0060.00816.23
7.1.240.0030.01115.58
7.1.230.0080.00515.53
7.1.220.0010.01115.75
7.1.210.0080.00615.77
7.1.200.0030.00815.52
7.1.190.0080.00515.72
7.1.180.0070.00715.79
7.1.170.0050.00615.76
7.1.160.0060.00915.77
7.1.150.0030.00815.72
7.1.140.0080.00315.58
7.1.130.0090.00315.81
7.1.120.0040.01015.58
7.1.110.0050.01015.92
7.1.100.0020.01016.62
7.1.90.0050.00815.93
7.1.80.0030.00915.84
7.1.70.0050.00616.21
7.1.60.0050.00917.17
7.1.50.0070.00616.20
7.1.40.0080.00715.77
7.1.30.0040.00815.64
7.1.20.0060.00715.76
7.1.10.0050.00815.74
7.1.00.0070.02917.99
7.0.330.0120.00015.29
7.0.320.0050.00715.41
7.0.310.0050.00715.35
7.0.300.0050.00615.40
7.0.290.0050.00815.39
7.0.280.0000.00915.10
7.0.270.0000.01015.36
7.0.260.0030.00815.35
7.0.250.0070.00415.54
7.0.240.0050.00615.60
7.0.230.0040.00715.33
7.0.220.0070.00315.53
7.0.210.0060.00815.46
7.0.200.0060.00515.97
7.0.190.0030.00715.43
7.0.180.0020.01015.25
7.0.170.0040.00515.38
7.0.160.0070.00615.29
7.0.150.0040.01115.42
7.0.140.0030.03117.80
7.0.130.0020.00815.46
7.0.120.0030.00815.54
7.0.110.0050.03617.06
7.0.100.0290.01716.94
7.0.90.0170.03017.05
7.0.80.0290.02516.88
7.0.70.0270.03016.89
7.0.60.0170.02216.93
7.0.50.0230.03216.85
7.0.40.0030.03215.60
7.0.30.0070.01915.58
7.0.20.0080.02915.54
7.0.10.0090.02715.40
7.0.00.0050.03415.54
5.6.400.0080.00414.46
5.6.390.0100.00714.27
5.6.380.0090.00414.38
5.6.370.0070.00814.29
5.6.360.0050.00814.20
5.6.350.0030.00814.28
5.6.340.0080.00514.74
5.6.330.0040.01014.45
5.6.320.0030.00914.48
5.6.310.0040.00414.39
5.6.300.0080.00514.53
5.6.290.0050.00714.59
5.6.280.0060.02816.58
5.6.270.0060.00714.54
5.6.260.0030.02316.36
5.6.250.0040.02016.42
5.6.240.0060.03116.39
5.6.230.0090.02916.48
5.6.220.0030.02516.55
5.6.210.0060.02916.48
5.6.200.0090.02816.49
5.6.190.0080.02616.38
5.6.180.0070.02916.28
5.6.170.0080.02816.39
5.6.160.0060.02016.34
5.6.150.0080.03116.40
5.6.140.0050.02816.45
5.6.130.0070.02816.63
5.6.120.0050.03016.50
5.6.110.0050.02116.43
5.6.100.0070.03116.42
5.6.90.0060.03016.54
5.6.80.0060.03016.12
5.6.70.0040.03616.26
5.6.60.0060.01616.25
5.6.50.0060.02716.27
5.6.40.0040.03016.25
5.6.30.0070.03016.23
5.6.20.0060.01716.20
5.6.10.0050.03416.18
5.6.00.0040.03016.25
5.5.380.0070.02814.39
5.5.370.0070.02914.32
5.5.360.0080.02814.46
5.5.350.0050.03014.44
5.5.340.0040.02714.47
5.5.330.0070.03014.46
5.5.320.0060.03214.54
5.5.310.0040.03114.52
5.5.300.0060.02914.49
5.5.290.0090.02814.43
5.5.280.0050.03114.55
5.5.270.0070.02714.56
5.5.260.0030.03314.53
5.5.250.0030.03414.34
5.5.240.0110.02314.24
5.5.230.0090.02514.28
5.5.220.0040.02614.22
5.5.210.0050.02614.09
5.5.200.0050.02814.30
5.5.190.0040.02014.42
5.5.180.0030.03114.13
5.5.170.0050.00812.68
5.5.160.0040.03014.32
5.5.150.0080.01814.29
5.5.140.0070.03014.25
5.5.130.0080.02814.12
5.5.120.0060.02714.19
5.5.110.0060.01614.31
5.5.100.0050.01714.23
5.5.90.0020.03414.13
5.5.80.0040.03214.24
5.5.70.0080.02914.18
5.5.60.0060.01614.21
5.5.50.0050.01514.07
5.5.40.0060.02714.13
5.5.30.0020.01814.28
5.5.20.0030.02214.20
5.5.10.0050.03014.18
5.5.00.0070.02614.20
5.4.450.0080.02913.84
5.4.440.0030.03113.91
5.4.430.0030.03213.68
5.4.420.0060.01813.78
5.4.410.0080.02913.77
5.4.400.0050.03013.82
5.4.390.0080.02613.74
5.4.380.0050.02813.73
5.4.370.0090.02513.70
5.4.360.0030.03113.64
5.4.350.0040.02913.71
5.4.340.0050.03013.74
5.4.330.0030.00810.95
5.4.320.0010.02213.68
5.4.310.0050.02113.72
5.4.300.0070.02613.68
5.4.290.0010.03313.56
5.4.280.0050.01413.69
5.4.270.0050.03013.72
5.4.260.0050.02913.70
5.4.250.0060.02413.69
5.4.240.0060.02813.65
5.4.230.0060.01413.68
5.4.220.0030.03013.61
5.4.210.0080.02513.71
5.4.200.0050.02813.71
5.4.190.0040.02713.64
5.4.180.0010.02013.88
5.4.170.0060.02213.63
5.4.160.0070.01213.66
5.4.150.0060.02713.62
5.4.140.0060.02612.86
5.4.130.0060.02412.75
5.4.120.0040.01512.80
5.4.110.0100.01012.93
5.4.100.0040.03012.89
5.4.90.0040.03012.88
5.4.80.0020.02712.81
5.4.70.0050.02712.91
5.4.60.0030.02212.78
5.4.50.0070.01212.84
5.4.40.0030.03012.87
5.4.30.0030.01612.81
5.4.20.0050.02412.86
5.4.10.0020.01712.75
5.4.00.0070.02312.50
5.3.290.0020.03612.92
5.3.280.0020.04112.80
5.3.270.0020.02012.89
5.3.260.0030.03612.81
5.3.250.0050.04012.81
5.3.240.0020.02712.78
5.3.230.0020.03012.88
5.3.220.0040.02912.92
5.3.210.0060.03912.80
5.3.200.0030.04012.83
5.3.190.0060.01512.87
5.3.180.0020.02112.78
5.3.170.0020.04012.80
5.3.160.0050.03712.79
5.3.150.0040.03112.88
5.3.140.0080.03712.91
5.3.130.0050.03912.90
5.3.120.0030.03912.78
5.3.110.0090.02512.77
5.3.100.0080.01712.56
5.3.90.0030.01912.52
5.3.80.0020.02012.54
5.3.70.0060.03712.54
5.3.60.0030.04112.58
5.3.50.0050.03712.60
5.3.40.0040.02012.53
5.3.30.0060.02912.59
5.3.20.0120.03212.38
5.3.10.0030.02812.42
5.3.00.0080.03512.30
5.2.170.0000.02711.19
5.2.160.0030.02811.12
5.2.150.0040.03311.19
5.2.140.0030.01611.12
5.2.130.0030.02411.11
5.2.120.0020.03411.08
5.2.110.0040.02311.14
5.2.100.0050.03311.17
5.2.90.0060.03111.11
5.2.80.0050.02011.12
5.2.70.0000.02011.03
5.2.60.0010.01611.08
5.2.50.0080.02211.08
5.2.40.0030.03311.12
5.2.30.0020.02811.08
5.2.20.0050.03011.07
5.2.10.0040.02710.99
5.2.00.0060.01411.01
5.1.60.0070.02310.56
5.1.50.0030.02510.58
5.1.40.0100.02510.55
5.1.30.0070.02710.68
5.1.20.0020.01410.83
5.1.10.0020.01310.62
5.1.00.0020.02110.61
5.0.50.0060.02110.16
5.0.40.0040.01510.16
5.0.30.0020.03410.16
5.0.20.0030.02210.16
5.0.10.0050.02110.16
5.0.00.0030.01810.16
4.4.90.0050.01710.16
4.4.80.0020.01810.16
4.4.70.0020.01310.16
4.4.60.0010.01510.16
4.4.50.0030.01810.16
4.4.40.0020.01310.16
4.4.30.0050.01310.16
4.4.20.0040.00710.16
4.4.10.0020.01310.16
4.4.00.0030.02510.16
4.3.110.0040.01510.16
4.3.100.0000.01410.16
4.3.90.0010.01910.16
4.3.80.0050.02210.16
4.3.70.0060.00810.16
4.3.60.0030.00710.16
4.3.50.0000.02110.16
4.3.40.0010.01110.16
4.3.30.0000.01710.16
4.3.20.0030.01210.16
4.3.10.0020.01910.16
4.3.00.0000.01910.16

preferences:
43.42 ms | 401 KiB | 5 Q