3v4l.org

run code in 300+ PHP versions simultaneously
<?php function shutdown() { echo "triggered\n"; if (@is_array($e = @error_get_last())) { $code = isset($e['type']) ? $e['type'] : 0; $msg = isset($e['message']) ? $e['message'] : ''; $file = isset($e['file']) ? $e['file'] : ''; $line = isset($e['line']) ? $e['line'] : ''; print_r( array( $code, $msg, $file, $line ) ); } } register_shutdown_function( 'shutdown' ); echo "start\n"; bla(); echo "end\n";

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.4.20.0180.00418.19
8.4.10.0060.00317.93
8.3.150.0060.01218.48
8.3.140.0040.00417.40
8.3.130.0090.00018.70
8.3.120.0030.00720.75
8.3.110.0070.00420.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0080.00018.55
8.3.70.0040.01118.55
8.3.60.0120.00318.54
8.3.50.0090.00418.40
8.3.40.0040.01119.08
8.3.30.0040.01118.88
8.3.20.0000.00819.10
8.3.10.0050.00321.09
8.3.00.0050.00323.66
8.2.260.0050.00316.72
8.2.250.0150.00016.95
8.2.240.0040.00417.28
8.2.230.0030.00622.58
8.2.220.0100.00037.54
8.2.210.0140.00326.77
8.2.200.0060.00317.00
8.2.190.0040.01416.75
8.2.180.0120.00618.54
8.2.170.0100.00722.96
8.2.160.0110.00319.21
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0080.00317.75
8.2.110.0030.01019.16
8.2.100.0060.00617.84
8.2.90.0000.00918.22
8.2.80.0040.00417.97
8.2.70.0040.00417.80
8.2.60.0040.00418.16
8.2.50.0000.00818.10
8.2.40.0070.00019.42
8.2.30.0040.00419.51
8.2.20.0040.00418.11
8.2.10.0040.00418.16
8.2.00.0070.00019.49
8.1.310.0060.00318.73
8.1.300.0030.00518.14
8.1.290.0040.00430.84
8.1.280.0150.00025.92
8.1.270.0170.00323.71
8.1.260.0080.00028.09
8.1.250.0050.00328.09
8.1.240.0060.00322.08
8.1.230.0090.00322.82
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0000.00917.35
8.1.180.0000.00818.10
8.1.170.0040.00718.65
8.1.160.0020.00518.96
8.1.150.0000.00818.91
8.1.140.0000.00717.73
8.1.130.0030.00319.04
8.1.120.0030.00317.54
8.1.110.0080.00017.54
8.1.100.0040.00417.38
8.1.90.0060.00317.46
8.1.80.0000.00717.50
8.1.70.0030.00317.48
8.1.60.0120.00017.63
8.1.50.0050.00317.57
8.1.40.0040.00417.56
8.1.30.0060.00317.70
8.1.20.0040.00417.70
8.1.10.0030.00517.70
8.1.00.0040.00417.55
8.0.300.0040.00419.69
8.0.290.0060.00316.75
8.0.280.0030.00318.55
8.0.270.0000.00716.82
8.0.260.0030.00317.16
8.0.250.0000.00716.95
8.0.240.0030.00317.08
8.0.230.0050.00316.95
8.0.220.0030.00317.00
8.0.210.0070.00016.97
8.0.200.0040.00417.13
8.0.190.0040.00417.06
8.0.180.0020.00517.01
8.0.170.0040.00417.02
8.0.160.0070.00016.85
8.0.150.0050.00316.81
8.0.140.0070.00016.93
8.0.130.0060.00013.45
8.0.120.0000.00716.90
8.0.110.0040.00416.94
8.0.100.0000.00716.88
8.0.90.0040.00416.96
8.0.80.0110.00917.03
8.0.70.0080.00016.96
8.0.60.0040.00416.94
8.0.50.0040.00416.85
8.0.30.0120.00917.14
8.0.20.0110.01017.40
8.0.10.0040.00416.94
8.0.00.0070.01216.65
7.4.330.0050.00015.55
7.4.320.0000.00616.39
7.4.300.0000.00716.52
7.4.290.0070.00016.51
7.4.280.0060.00316.52
7.4.270.0090.00316.54
7.4.260.0080.00016.47
7.4.250.0000.00716.58
7.4.240.0040.00416.52
7.4.230.0030.00316.33
7.4.220.0020.00516.46
7.4.210.0060.01016.59
7.4.200.0080.00016.64
7.4.160.0100.00616.65
7.4.140.0110.01117.86
7.4.130.0030.01416.60
7.4.120.0080.01116.64
7.4.110.0070.01016.55
7.4.100.0060.01416.65
7.4.90.0140.00416.70
7.4.80.0070.01019.39
7.4.70.0160.00616.52
7.4.60.0110.00616.36
7.4.50.0100.00316.68
7.4.40.0140.00316.57
7.4.00.0070.01115.20
7.3.330.0060.00013.27
7.3.320.0060.00013.43
7.3.310.0030.00316.44
7.3.300.0000.00816.30
7.3.290.0000.00716.37
7.3.280.0030.01116.28
7.3.260.0090.00916.45
7.3.240.0100.01016.47
7.3.230.0130.00416.60
7.3.210.0150.00716.40
7.3.200.0090.00816.46
7.3.190.0180.00016.55
7.3.180.0040.01216.39
7.3.170.0050.01216.43
7.3.160.0080.00816.32
7.3.120.0040.01114.55
7.3.110.0030.01414.93
7.3.100.0100.00314.99
7.3.90.0070.01114.71
7.3.80.0070.01115.08
7.3.70.0070.01014.65
7.3.60.0070.00714.88
7.3.50.0110.00414.96
7.3.40.0120.00614.96
7.3.30.0000.01114.55
7.3.20.0040.01216.75
7.3.10.0060.00716.54
7.3.00.0010.01016.81
7.2.330.0150.00916.79
7.2.320.0110.00716.56
7.2.310.0060.01216.83
7.2.300.0140.00316.46
7.2.290.0060.01116.75
7.2.250.0100.01014.89
7.2.240.0100.00715.12
7.2.230.0110.00415.14
7.2.220.0000.01915.23
7.2.210.0040.01515.04
7.2.200.0090.00615.04
7.2.190.0120.00315.18
7.2.180.0030.01715.07
7.2.170.0030.01514.91
7.2.130.0020.01316.98
7.2.120.0050.00916.93
7.2.110.0100.00616.85
7.2.100.0020.01316.81
7.2.90.0580.00916.28
7.2.80.0150.00716.34
7.2.70.0690.00615.78
7.2.60.0280.00815.77
7.2.50.0540.00915.69
7.2.40.0530.00615.74
7.2.30.0260.00915.86
7.2.20.0260.00815.75
7.2.10.0780.00715.76
7.2.00.0570.00715.74
7.1.330.0070.00715.66
7.1.320.0090.00615.96
7.1.310.0070.01115.97
7.1.300.0100.00715.58
7.1.290.0030.01615.89
7.1.280.0100.00015.82
7.1.270.0000.01015.53
7.1.260.0030.00915.54
7.1.250.0040.00715.82
7.1.210.0370.00013.63
7.1.200.0170.00614.87
7.1.190.0280.00413.85
7.1.180.0050.00913.87
7.1.170.0470.00713.90
7.1.160.0680.00413.80
7.1.150.0280.01113.93
7.1.140.0350.01013.89
7.1.130.1230.00913.93
7.1.120.0780.00913.93
7.1.110.0380.00714.05
7.1.100.0350.01013.79
7.1.90.1110.00613.95
7.1.80.0920.00813.72
7.1.70.1020.00413.96
7.1.60.1130.01631.69
7.1.50.1550.00831.76
7.1.40.0420.00931.92
7.1.30.0380.01231.68
7.1.20.0660.01331.69
7.1.10.0540.00513.66
7.1.00.0280.00313.74
7.0.310.0100.00513.33
7.0.300.0870.00813.60
7.0.290.0950.00613.56
7.0.280.0030.01413.23
7.0.270.1280.00713.41
7.0.260.0460.00713.68
7.0.250.0480.00413.56
7.0.240.0340.00913.54
7.0.230.1010.00613.59
7.0.220.1120.00613.50
7.0.210.1320.00613.56
7.0.200.1530.00213.46
7.0.190.0490.01013.68
7.0.180.0260.00613.54
7.0.170.0370.00613.63
7.0.160.0230.00713.46
7.0.150.0370.00513.45
7.0.140.0280.00613.49
7.0.130.1340.00313.58
7.0.120.0190.00713.55
7.0.110.0300.00313.67
7.0.100.0280.01013.50
7.0.90.0330.00313.63
7.0.80.0400.00713.53
7.0.70.0430.00413.66
7.0.60.0330.00913.60
7.0.50.0440.00413.53
7.0.40.0250.01013.56
7.0.30.0560.00513.64
7.0.20.0330.01013.55
7.0.10.0540.00613.49
7.0.00.0530.00713.64
5.6.300.0050.00914.21
5.6.290.0110.00714.54
5.6.280.0110.00914.33
5.6.270.0110.00714.37
5.6.260.0150.00414.29
5.6.250.0150.00214.30
5.6.240.0110.00714.34
5.6.230.0120.00614.36
5.6.220.0090.00814.45
5.6.210.0120.01014.29
5.6.200.0110.00814.33
5.6.190.0100.01014.48
5.6.180.0110.00814.35
5.6.170.0100.00814.16
5.6.160.0120.00614.38
5.6.150.0110.00614.45
5.6.140.0140.00514.32
5.6.130.0090.00914.32
5.6.120.0100.00814.41
5.6.110.0130.00614.25
5.6.100.0100.00714.33
5.6.90.0090.01014.35
5.6.80.0120.00514.33
5.6.70.0110.00814.21
5.6.60.0140.00314.26
5.6.50.0070.01114.38
5.6.40.0090.01014.29
5.6.30.0110.00714.37
5.6.20.0110.00814.31
5.6.10.0100.00814.32
5.6.00.0120.00514.37
5.5.380.0080.00811.31
5.5.370.0100.00311.24
5.5.360.0130.00111.27
5.5.350.0130.00211.37
5.5.340.0090.00411.10
5.5.330.0060.00811.32
5.5.320.0120.00311.22
5.5.310.0120.00111.19
5.5.300.0080.00511.25
5.5.290.0100.00511.29
5.5.280.0080.00711.19
5.5.270.0090.00411.08
5.5.260.0100.00311.13
5.5.250.0100.00411.20
5.5.240.0080.00511.19
5.5.230.0060.00810.98
5.5.220.0080.00611.23
5.5.210.0100.00211.17
5.5.200.0110.00311.12
5.5.190.0070.00711.29
5.5.180.0090.00611.21
5.5.170.0070.00714.39
5.5.160.0080.00611.00
5.5.150.0070.00711.34
5.5.140.0080.00811.19
5.5.130.0090.00511.16
5.5.120.0090.00411.23
5.5.110.0100.00311.10
5.5.100.0080.00411.21
5.5.90.0090.00511.22
5.5.80.0070.00511.18
5.5.70.0110.00311.13
5.5.60.0070.00610.93
5.5.50.0070.00611.14
5.5.40.0140.00111.06
5.5.30.0070.00511.10
5.5.20.0110.00311.04
5.5.10.0100.00211.12
5.5.00.0090.00411.01
5.4.450.0050.00811.12
5.4.440.0050.01011.32
5.4.430.0060.00611.33
5.4.420.0050.00811.01
5.4.410.0060.00711.03
5.4.400.0080.00410.97
5.4.390.0060.00711.15
5.4.380.0090.00611.11
5.4.370.0080.00411.14
5.4.360.0060.00911.05
5.4.350.0090.00511.11
5.4.340.0080.00511.15
5.4.330.0060.00611.25
5.4.320.0080.00511.09
5.4.310.0070.00611.04
5.4.300.0110.00511.14
5.4.290.0100.00311.01
5.4.280.0100.00510.92
5.4.270.0090.00511.10
5.4.260.0050.00711.23
5.4.250.0060.00611.08
5.4.240.0130.00510.93
5.4.230.0070.00611.07
5.4.220.0070.00511.05
5.4.210.0080.00510.89
5.4.200.0090.00611.06
5.4.190.0120.00310.95
5.4.180.0080.00611.08
5.4.170.0100.00311.00
5.4.160.0060.00710.91
5.4.150.0090.00411.09
5.4.140.0080.00511.19
5.4.130.0090.00711.19
5.4.120.0040.01011.10
5.4.110.0080.00711.13
5.4.100.0140.00011.14
5.4.90.0090.00610.95
5.4.80.0110.00210.99
5.4.70.0070.00710.99
5.4.60.0090.00411.26
5.4.50.0070.00510.97
5.4.40.0080.00511.09
5.4.30.0100.00611.03
5.4.20.0110.00310.95
5.4.10.0080.00611.12
5.4.00.0090.00511.01
5.3.290.0050.00810.61
5.3.280.0050.00810.46
5.3.270.0100.00210.67
5.3.260.0070.00610.55
5.3.250.0060.00810.54
5.3.240.0060.00910.46
5.3.230.0110.00310.48
5.3.220.0120.00210.48
5.3.210.0060.00710.40
5.3.200.0100.00410.45
5.3.190.0060.00710.55
5.3.180.0090.00310.69
5.3.170.0100.00210.68
5.3.160.0070.00510.70
5.3.150.0080.00510.71
5.3.140.0070.00510.62
5.3.130.0110.00210.62
5.3.120.0080.00610.57
5.3.110.0080.00410.62
5.3.100.0060.00510.59
5.3.90.0080.00410.54
5.3.80.0100.00310.46
5.3.70.0070.00510.46
5.3.60.0080.00310.56
5.3.50.0090.00410.52
5.3.40.0060.00710.61
5.3.30.0070.00510.61
5.3.20.0100.00210.46
5.3.10.0100.00210.36
5.3.00.0100.00210.20
5.2.170.0050.0059.85
5.2.160.0050.0069.83
5.2.150.0070.0039.86
5.2.140.0080.0039.79
5.2.130.0050.0069.68
5.2.120.0050.0059.83
5.2.110.0070.0039.74
5.2.100.0080.0039.85
5.2.90.0070.0039.77
5.2.80.0070.0059.70
5.2.70.0030.0079.69
5.2.60.0090.0019.65
5.2.50.0040.0059.72
5.2.40.0060.0049.83
5.2.30.0040.0079.78
5.2.20.0040.0069.65
5.2.10.0050.0059.60
5.2.00.0090.0019.54
5.1.60.0010.0079.30
5.1.50.0060.0039.30
5.1.40.0050.0039.30
5.1.30.0060.0039.30
5.1.20.0060.0029.30
5.1.10.0080.0019.30
5.1.00.0070.0039.30
5.0.50.0050.0039.30
5.0.40.0030.0049.30
5.0.30.0030.0049.30
5.0.20.0020.0059.30
5.0.10.0050.0039.30
5.0.00.0020.0049.30
4.4.90.0030.0039.30
4.4.80.0020.0059.30
4.4.70.0040.0029.30
4.4.60.0010.0069.30
4.4.50.0030.0039.30
4.4.40.0050.0029.30
4.4.30.0010.0069.30
4.4.20.0040.0029.30
4.4.10.0040.0029.30
4.4.00.0010.0059.30
4.3.110.0020.0049.30
4.3.100.0050.0019.30
4.3.90.0050.0019.30
4.3.80.0050.0019.30
4.3.70.0030.0039.30
4.3.60.0030.0039.30
4.3.50.0030.0039.30
4.3.40.0020.0049.30
4.3.30.0010.0049.30
4.3.20.0020.0029.30
4.3.10.0030.0039.30
4.3.00.0020.0039.30

preferences:
39.54 ms | 403 KiB | 5 Q