3v4l.org

run code in 300+ PHP versions simultaneously
<?php function y($x, $y, $z) { switch ($a->a()) { default: $s = '' . $b; } $c = array($b); switch ($a->a()) { case A::B: $e = 0; $f = 0; if (!empty($d[''])) { $e = 0; } else { if (!isset($d[''])) { if (isset($d[''])) { $d[''] = $d['']; } } if (isset($d[''])) { $e = a(0, a(0, $d[''])); } } case A::B: if (!isset($d[''])) { if (isset($d[''])) { $d[''] = round((0 - $d['']) * 0 * 0); } } if (isset($d[''])) { if ($d[''] < 0 || $d[''] > 0) { new Z(''); } } if (!isset($d[''])) { if (isset($d[''])) { $d[''] = $d['']; } } if (isset($d[''])) { $g[] = $d['']; } break; case A::B: if (isset($d[''])) { $g[] = $d['']; } break; case A::B: if (!isset($d[''])) { if (isset($d[''])) { $d[''] = $d['']; } } if (isset($d[''])) { if ($d[''] < 0) { new Z(''); } $g[] = $d['']; } break; } } echo "Success!";

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.110.0000.00816.77
8.3.100.0090.00016.57
8.3.90.0030.00526.77
8.3.80.0100.00016.75
8.3.70.0120.00416.58
8.3.60.0000.01416.63
8.3.50.0140.00319.99
8.3.40.0130.00620.93
8.3.30.0040.01119.04
8.3.20.0030.00624.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.230.0030.00620.94
8.2.220.0030.00624.06
8.2.210.0070.00726.77
8.2.200.0030.00618.16
8.2.190.0100.01016.75
8.2.180.0120.00325.92
8.2.170.0120.00318.78
8.2.160.0120.00822.96
8.2.150.0000.00725.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00426.16
8.2.110.0090.00022.01
8.2.100.0090.00317.72
8.2.90.0040.00417.63
8.2.80.0060.00318.61
8.2.70.0040.00417.50
8.2.60.0030.00617.50
8.2.50.0060.00317.98
8.2.40.0050.00319.82
8.2.30.0040.00417.98
8.2.20.0070.00020.55
8.2.10.0030.00618.08
8.2.00.0050.00319.27
8.1.290.0050.00530.84
8.1.280.0110.00725.92
8.1.270.0000.00723.99
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0040.00422.42
8.1.230.0100.00319.29
8.1.220.0030.00517.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.13
8.1.180.0000.00818.10
8.1.170.0040.00417.62
8.1.160.0040.00418.72
8.1.150.0000.01018.47
8.1.140.0050.00317.38
8.1.130.0070.00018.82
8.1.120.0040.00417.46
8.1.110.0040.00417.43
8.1.100.0040.00417.31
8.1.90.0000.00817.34
8.1.80.0060.00317.34
8.1.70.0030.00317.40
8.1.60.0030.00617.50
8.1.50.0040.00417.41
8.1.40.0140.00517.38
8.1.30.0190.00317.53
8.1.20.0140.00517.46
8.1.10.0160.00417.45
8.1.00.0140.00517.38
8.0.300.0000.00719.78
8.0.290.0000.00716.75
8.0.280.0000.00718.37
8.0.270.0030.00316.87
8.0.260.0000.00618.42
8.0.250.0000.00716.74
8.0.240.0070.00016.82
8.0.230.0000.00716.91
8.0.220.0070.00016.81
8.0.210.0000.00716.73
8.0.200.0000.00716.89
8.0.190.0030.00516.81
8.0.180.0040.00416.74
8.0.170.0100.00616.75
8.0.160.0110.00416.80
8.0.150.0080.00716.68
8.0.140.0120.00416.70
8.0.130.0100.00516.68
8.0.120.0110.00416.76
8.0.110.0080.00716.77
8.0.100.0100.00616.75
8.0.90.0110.00516.74
8.0.80.0120.00416.83
8.0.70.0110.00516.74
8.0.60.0130.00316.75
8.0.50.0130.00316.75
8.0.30.0100.00516.76
8.0.20.0140.00316.81
8.0.10.0090.00816.84
8.0.00.0050.00516.96
7.4.330.0050.00015.55
7.4.320.0070.00016.58
7.4.300.0000.00616.30
7.4.290.0030.00316.43
7.4.280.0110.00116.50
7.4.270.0160.00316.45
7.4.260.0150.00316.40
7.4.250.0080.00716.43
7.4.240.0070.00616.38
7.4.230.0110.00616.44
7.4.220.0120.00416.33
7.4.210.0050.01016.47
7.4.200.0110.00416.40
7.4.190.0140.00416.50
7.4.180.0120.00616.50
7.4.160.0130.00516.47
7.4.150.0160.00416.41
7.4.140.0170.00316.35
7.4.130.0170.00516.38
7.4.120.0160.00216.29
7.4.110.0160.00316.31
7.4.100.0110.00816.43
7.4.90.0100.00416.37
7.4.80.0110.00316.37
7.4.70.0030.01016.28
7.4.60.0060.00716.36
7.4.50.0090.00316.23
7.4.40.0140.00316.26
7.4.30.0130.00316.37
7.4.20.0070.00816.34
7.4.10.0130.00416.30
7.4.00.0110.00716.27
7.3.330.0160.00316.27
7.3.320.0150.00516.15
7.3.310.0170.00316.07
7.3.300.0120.00816.18
7.3.290.0160.00316.23
7.3.280.0170.00316.00
7.3.270.0170.00616.24
7.3.260.0160.00316.09
7.3.250.0190.00016.24
7.3.240.0080.01216.25
7.3.230.0160.00315.96
7.3.220.0150.00416.06
7.3.210.0200.00016.03
7.3.200.0140.00716.02
7.3.190.0160.00316.13
7.3.180.0150.00416.20
7.3.170.0070.01216.17
7.3.160.0130.00615.92
7.3.150.0160.00416.13
7.3.140.0160.00316.02
7.3.130.0110.01116.00
7.3.120.0140.00516.16
7.3.110.0100.01015.91
7.3.100.0160.00316.02
7.3.90.0160.00316.29
7.3.80.0150.00516.00
7.3.70.0140.00716.19
7.3.60.0120.00616.21
7.3.50.0170.00616.23
7.3.40.0150.00416.39
7.3.30.0150.00516.41
7.3.20.0150.00418.11
7.3.10.0190.00018.04
7.3.00.0230.00017.91
7.2.340.0190.00316.23
7.2.330.0160.00316.12
7.2.320.0190.00016.13
7.2.310.0160.00216.16
7.2.300.0130.00516.21
7.2.290.0200.00016.28
7.2.280.0200.00016.33
7.2.270.0150.00516.32
7.2.260.0100.00916.32
7.2.250.0190.00016.07
7.2.240.0130.00816.26
7.2.230.0150.00416.36
7.2.220.0100.01016.26
7.2.210.0140.00516.30
7.2.200.0140.00716.26
7.2.190.0160.00716.44
7.2.180.0150.00516.25
7.2.170.0210.00016.55
7.2.160.0160.00316.50
7.2.150.0130.00618.02
7.2.140.0170.00218.16
7.2.130.0150.00418.40
7.2.120.0090.00918.42
7.2.110.0200.00018.21
7.2.100.0090.00918.21
7.2.90.0100.01018.11
7.2.80.0100.00918.10
7.2.70.0140.00618.18
7.2.60.0150.00418.32
7.2.50.0140.00518.30
7.2.40.0150.00418.36
7.2.30.0160.00418.11
7.2.20.0170.00318.20
7.2.10.0170.00318.36
7.2.00.0170.00318.36
7.1.330.0130.00517.28
7.1.320.0180.00017.27
7.1.310.0160.00317.09
7.1.300.0080.01017.08
7.1.290.0140.00517.19
7.1.280.0170.00317.07
7.1.270.0120.00617.12
7.1.260.0170.00017.03
7.1.250.0110.00717.17
7.1.240.0170.00017.04
7.1.230.0140.00417.21
7.1.220.0170.00017.23
7.1.210.0130.00517.16
7.1.200.0130.00417.17
7.1.190.0140.00417.04
7.1.180.0140.00417.15
7.1.170.0150.00417.11
7.1.160.0120.00617.11
7.1.150.0150.00417.12
7.1.140.0180.00017.19
7.1.130.0150.00417.01
7.1.120.0150.00317.12
7.1.110.0090.00917.11
7.1.100.0140.00416.88
7.1.90.0140.00716.87
7.1.80.0180.00017.09
7.1.70.0150.00316.93
7.1.60.0120.00617.18
7.1.50.0180.00016.92
7.1.40.0130.00517.07
7.1.30.0120.00617.12
7.1.20.0140.00317.14
7.1.10.0100.00717.03
7.1.00.0150.00316.94
7.0.330.0150.00316.71
7.0.320.0140.00316.80
7.0.310.0180.00016.88
7.0.300.0130.00316.91
7.0.290.0090.00916.81
7.0.280.0110.00616.88
7.0.270.0100.00717.00
7.0.260.0120.00416.82
7.0.250.0140.00316.96
7.0.240.0170.00017.07
7.0.230.0170.00016.87
7.0.220.0110.00716.96
7.0.210.0170.00016.93
7.0.200.0170.00016.84
7.0.190.0140.00516.93
7.0.180.0090.00916.96
7.0.170.0170.00016.89
7.0.160.0150.00216.86
7.0.150.0170.00016.85
7.0.140.0140.00416.77
7.0.130.0120.00516.80
7.0.120.0060.01217.03
7.0.110.0170.00016.90
7.0.100.0130.00316.90
7.0.90.0140.00516.80
7.0.80.0110.00616.62
7.0.70.0120.00516.86
7.0.60.0150.00316.98
7.0.50.0120.00516.91
7.0.40.0110.00616.94
7.0.30.0100.00716.66
7.0.20.0100.00616.88
7.0.10.0170.00016.88
7.0.00.0160.00416.82
5.6.400.0140.00415.70
5.6.390.0130.00415.76
5.6.380.0080.00815.74
5.6.370.0170.00015.67
5.6.360.0080.00815.55
5.6.350.0080.00815.52
5.6.340.0140.00315.70
5.6.330.0100.00715.67
5.6.320.0120.00415.70
5.6.310.0180.00015.75
5.6.300.0170.00015.57
5.6.290.0170.00215.75
5.6.280.0170.00315.68
5.6.270.0140.00715.80
5.6.260.0170.00315.80
5.6.250.0150.00415.60
5.6.240.0130.00815.65
5.6.230.0150.00415.59
5.6.220.0190.00015.74
5.6.210.0160.00715.61
5.6.200.0120.00715.84
5.6.190.0180.00015.86
5.6.180.0150.00715.70
5.6.170.0220.00015.68
5.6.160.0180.00315.89
5.6.150.0200.00015.92
5.6.140.0140.00615.63
5.6.130.0210.00015.74
5.6.120.0160.00415.72
5.6.110.0160.00415.69
5.6.100.0180.00315.54
5.6.90.0210.00015.68
5.6.80.0200.00015.80
5.6.70.0150.00415.72
5.6.60.0130.00715.59
5.6.50.0120.00615.67
5.6.40.0140.00515.64
5.6.30.0170.00315.50
5.6.20.0140.00415.57
5.6.10.0130.00315.69
5.6.00.0120.00615.55
5.5.380.0140.00615.64
5.5.370.0170.00315.54
5.5.360.0140.00715.38
5.5.350.0100.01015.39
5.5.340.0170.00415.61
5.5.330.0140.00515.66
5.5.320.0110.00715.66
5.5.310.0150.00315.68
5.5.300.0100.00715.40
5.5.290.0110.00515.52
5.5.280.0130.00315.50
5.5.270.0170.00015.27
5.5.260.0100.00715.34
5.5.250.0110.00515.65
5.5.240.0080.00915.84
5.5.230.0070.01015.58
5.5.220.0110.00615.55
5.5.210.0120.00415.66
5.5.200.0060.01015.22
5.5.190.0130.00515.49
5.5.180.0120.00415.52
5.5.170.0110.00515.29
5.5.160.0120.00415.26
5.5.150.0130.00315.28
5.5.140.0190.00015.27
5.5.130.0110.00515.40
5.5.120.0100.00515.43
5.5.110.0080.00815.37
5.5.100.0110.00515.56
5.5.90.0130.00315.71
5.5.80.0140.00315.68
5.5.70.0130.00315.72
5.5.60.0170.00015.50
5.5.50.0110.00415.38
5.5.40.0120.00315.40
5.5.30.0120.00315.40
5.5.20.0130.00315.73
5.5.10.0170.00015.37
5.5.00.0130.00315.36
5.4.450.0100.00312.40
5.4.440.0130.00012.71
5.4.430.0130.00012.70
5.4.420.0070.00712.50
5.4.410.0160.00012.47
5.4.400.0140.00012.49
5.4.390.0090.00412.65
5.4.380.0110.00212.48
5.4.370.0130.00012.65
5.4.360.0100.00312.34
5.4.350.0140.00012.47
5.4.340.0110.00312.33
5.4.330.0110.00312.57
5.4.320.0100.00312.56
5.4.310.0070.00712.44
5.4.300.0130.00012.63
5.4.290.0100.00312.70
5.4.280.0130.00012.70
5.4.270.0110.00312.56
5.4.260.0110.00412.37
5.4.250.0080.00612.64
5.4.240.0040.00912.47
5.4.230.0140.00012.45
5.4.220.0130.00012.15
5.4.210.0070.00712.31
5.4.200.0090.00612.27
5.4.190.0110.00312.13
5.4.180.0130.00012.06
5.4.170.0070.00712.35
5.4.160.0070.00712.44
5.4.150.0130.00012.20
5.4.140.0130.00012.58
5.4.130.0130.00012.51
5.4.120.0110.00312.54
5.4.110.0130.00012.49
5.4.100.0090.00512.46
5.4.90.0080.00412.49
5.4.80.0130.00012.26
5.4.70.0080.00412.52
5.4.60.0080.00412.33
5.4.50.0070.00512.42
5.4.40.0090.00312.30
5.4.30.0060.00612.31
5.4.20.0120.00012.46
5.4.10.0110.00312.33
5.4.00.0080.00412.15
5.3.290.0090.00412.77
5.3.280.0100.00312.71
5.3.270.0080.00512.71
5.3.260.0130.00012.98
5.3.250.0110.00312.77
5.3.240.0110.00412.60
5.3.230.0100.00312.92
5.3.220.0110.00312.77
5.3.210.0130.00312.86
5.3.200.0140.00012.59
5.3.190.0100.00312.62
5.3.180.0090.00413.03
5.3.170.0130.00312.74
5.3.160.0050.00912.81
5.3.150.0100.00312.76
5.3.140.0040.00912.69
5.3.130.0080.00512.75
5.3.120.0130.00012.91
5.3.110.0100.00312.71
5.3.100.0130.00012.87
5.3.90.0130.00012.91
5.3.80.0080.00412.57
5.3.70.0130.00012.80
5.3.60.0100.00312.89
5.3.50.0130.00012.76
5.3.40.0140.00012.52
5.3.30.0100.00312.80
5.3.20.0080.00412.54
5.3.10.0040.00912.34
5.3.00.0100.00312.59
5.2.170.0050.00511.95
5.2.160.0090.00211.69
5.2.150.0100.00011.94
5.2.140.0100.00011.83
5.2.130.0040.00811.70
5.2.120.0050.00511.88
5.2.110.0050.00511.70
5.2.100.0090.00211.67
5.2.90.0040.00811.86
5.2.80.0110.00011.82
5.2.70.0070.00411.49
5.2.60.0120.00011.67
5.2.50.0060.00611.85
5.2.40.0100.00011.89
5.2.30.0100.00011.61
5.2.20.0110.00011.69
5.2.10.0100.00011.45
5.2.00.0050.00511.55
5.1.60.0100.00010.71
5.1.50.0090.00010.97
5.1.40.0060.00311.08
5.1.30.0050.00511.08
5.1.20.0030.00610.93
5.1.10.0030.00610.75
5.1.00.0060.00310.87
5.0.50.0000.0089.93
5.0.40.0040.00410.00
5.0.30.0050.0039.93
5.0.20.0040.00410.00
5.0.10.0070.0009.93
5.0.00.0070.0009.93
4.4.90.0050.0009.93
4.4.80.0050.0009.93
4.4.70.0050.0009.93
4.4.60.0040.0009.93
4.4.50.0050.0009.93
4.4.40.0050.0009.93
4.4.30.0000.0069.93
4.4.20.0050.0009.93
4.4.10.0050.0009.93
4.4.00.0000.0059.93
4.3.110.0000.0059.93
4.3.100.0050.0009.93
4.3.90.0030.0039.93
4.3.80.0000.0069.93
4.3.70.0060.0009.93
4.3.60.0050.0009.93
4.3.50.0020.0039.93
4.3.40.0050.0009.93
4.3.30.0040.0009.93
4.3.20.0040.0009.93
4.3.10.0040.0009.93
4.3.00.0020.0029.93

preferences:
36.04 ms | 403 KiB | 5 Q