3v4l.org

run code in 300+ PHP versions simultaneously
<?php function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new ErrorException($errstr, 0, $errno, $errfile, $errline); } set_error_handler("exception_error_handler"); try { echo $x; } catch(Exception $e) { }

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.0110.00616.63
8.3.50.0090.00921.94
8.3.40.0040.01118.81
8.3.30.0090.00919.22
8.3.20.0080.00020.13
8.3.10.0030.00523.53
8.3.00.0080.00022.51
8.2.180.0090.00916.63
8.2.170.0070.00722.96
8.2.160.0110.00420.39
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00522.12
8.2.110.0060.00322.11
8.2.100.0060.00617.78
8.2.90.0000.00919.04
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0080.00017.80
8.2.50.0040.00718.07
8.2.40.0040.00419.38
8.2.30.0080.00018.05
8.2.20.0020.00517.77
8.2.10.0080.00017.72
8.2.00.0050.00317.72
8.1.280.0030.01025.92
8.1.270.0080.00023.91
8.1.260.0080.00026.35
8.1.250.0040.01128.09
8.1.240.0060.00323.79
8.1.230.0100.00019.08
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00717.53
8.1.180.0040.00418.10
8.1.170.0000.00818.65
8.1.160.0000.00821.91
8.1.150.0000.00718.63
8.1.140.0070.00017.55
8.1.130.0000.00717.72
8.1.120.0040.00417.35
8.1.110.0040.00417.46
8.1.100.0040.00417.46
8.1.90.0080.00017.34
8.1.80.0030.00317.49
8.1.70.0030.00317.33
8.1.60.0060.00317.64
8.1.50.0040.00417.40
8.1.40.0000.00817.46
8.1.30.0040.00417.63
8.1.20.0040.00417.73
8.1.10.0000.00717.47
8.1.00.0000.00817.51
8.0.300.0040.00418.77
8.0.290.0050.00217.30
8.0.280.0000.00718.48
8.0.270.0070.00017.30
8.0.260.0000.00616.86
8.0.250.0000.00716.91
8.0.240.0000.00716.88
8.0.230.0040.00416.95
8.0.220.0000.00716.88
8.0.210.0040.00416.82
8.0.200.0030.00316.95
8.0.190.0050.00516.96
8.0.180.0070.00016.87
8.0.170.0080.00016.79
8.0.160.0050.00216.77
8.0.150.0050.00316.95
8.0.140.0000.00716.96
8.0.130.0030.00313.25
8.0.120.0080.00016.86
8.0.110.0070.00016.89
8.0.100.0070.00016.88
8.0.90.0050.00316.88
8.0.80.0080.00816.98
8.0.70.0040.00417.01
8.0.60.0000.00716.81
8.0.50.0040.00416.81
8.0.30.0090.00917.24
8.0.20.0080.01017.40
8.0.10.0040.00417.02
8.0.00.0110.01116.71
7.4.330.0000.00515.09
7.4.320.0030.00316.41
7.4.300.0060.00016.57
7.4.290.0000.00616.53
7.4.280.0040.00416.61
7.4.270.0030.00316.51
7.4.260.0000.00716.59
7.4.250.0050.00316.57
7.4.240.0020.00516.57
7.4.230.0030.00316.68
7.4.220.0080.01116.66
7.4.210.0040.00916.45
7.4.200.0000.00716.49
7.4.190.0000.00716.48
7.4.160.0060.00916.49
7.4.150.0080.00817.40
7.4.140.0120.00717.86
7.4.130.0080.01016.65
7.4.120.0100.01016.55
7.4.110.0120.00316.44
7.4.100.0100.01016.54
7.4.90.0090.00916.65
7.4.80.0060.01219.39
7.4.70.0100.00716.36
7.4.60.0160.00016.50
7.4.50.0050.00016.67
7.4.40.0000.01522.77
7.4.30.0040.01516.49
7.4.00.0000.01714.96
7.3.330.0000.00513.31
7.3.320.0060.00013.23
7.3.310.0000.00716.33
7.3.300.0030.00316.39
7.3.290.0080.00916.45
7.3.280.0140.00516.37
7.3.270.0100.00717.40
7.3.260.0110.00916.74
7.3.250.0130.00316.57
7.3.240.0060.01316.53
7.3.230.0130.00616.52
7.3.210.0130.00316.44
7.3.200.0060.01319.39
7.3.190.0140.00316.33
7.3.180.0120.00616.71
7.3.170.0070.01016.51
7.3.160.0070.01416.56
7.3.120.0100.00714.98
7.3.00.0070.00316.73
7.2.330.0130.01016.57
7.2.320.0100.00616.61
7.2.310.0110.00716.58
7.2.300.0060.01016.62
7.2.290.0100.01216.48
7.2.130.0000.01116.82
7.2.120.0080.00316.95
7.2.110.0130.00316.91
7.2.100.0000.01216.98
7.2.90.0070.00716.90
7.2.80.0080.00416.75
7.2.70.0040.00816.92
7.2.60.0080.00616.76
7.2.50.0040.01217.00
7.2.40.0030.01017.02
7.2.30.0060.01016.93
7.2.20.0030.00916.91
7.2.10.0080.00416.81
7.2.00.0090.00417.95
7.1.250.0070.00715.79
7.1.240.0000.01215.63
7.1.230.0060.00615.53
7.1.220.0030.00715.72
7.1.210.0040.01115.78
7.1.200.0070.00715.77
7.1.190.0040.00715.73
7.1.180.0080.00315.88
7.1.170.0000.01015.58
7.1.160.0030.00715.80
7.1.150.0000.01015.73
7.1.140.0040.00415.78
7.1.130.0000.01215.46
7.1.120.0040.01115.84
7.1.110.0000.01415.91
7.1.100.0080.00516.91
7.1.90.0090.00015.94
7.1.80.0070.00315.75
7.1.70.0050.00416.41
7.1.60.0110.00817.43
7.1.50.0100.00716.57
7.1.40.0040.00715.85
7.1.30.0080.00415.76
7.1.20.0090.00315.84
7.1.10.0070.00715.72
7.1.00.0070.03919.04
7.0.330.0080.00315.49
7.0.320.0060.00615.28
7.0.310.0040.00715.40
7.0.300.0050.00315.29
7.0.290.0070.00315.04
7.0.280.0000.01015.57
7.0.270.0040.01115.44
7.0.260.0110.00015.35
7.0.250.0060.00615.30
7.0.240.0040.00815.38
7.0.230.0000.01015.57
7.0.220.0040.00815.28
7.0.210.0050.00515.45
7.0.200.0100.00616.02
7.0.190.0080.00315.21
7.0.180.0090.00015.16
7.0.170.0110.00715.16
7.0.160.0040.00415.32
7.0.150.0000.01115.44
7.0.140.0060.03818.73
7.0.130.0040.00915.13
7.0.120.0070.00315.45
7.0.110.0030.00615.18
7.0.100.0100.00715.38
7.0.90.0000.01515.45
7.0.80.0040.00715.55
7.0.70.0000.00915.47
7.0.60.0080.04217.77
7.0.50.0120.04216.61
7.0.40.0060.04616.97
7.0.30.0130.02716.75
7.0.20.0160.02816.67
7.0.10.0150.03416.86
7.0.00.0100.02816.80
5.6.380.0070.00413.88
5.6.370.0070.00414.11
5.6.360.0060.00613.93
5.6.350.0080.00414.17
5.6.340.0060.00314.46
5.6.330.0030.00714.05
5.6.320.0140.00014.48
5.6.310.0030.00914.04
5.6.300.0120.00314.04
5.6.290.0040.00714.07
5.6.280.0090.03517.60
5.6.270.0080.00414.03
5.6.260.0060.00614.51
5.6.250.0100.00714.00
5.6.240.0040.01114.01
5.6.230.0040.00414.29
5.6.220.0120.00013.69
5.6.210.0070.03817.34
5.6.200.0050.02616.11
5.6.190.0080.04317.43
5.6.180.0220.04517.20
5.6.170.0180.04517.44
5.6.160.0030.04917.41
5.6.150.0020.02616.21
5.6.140.0090.02816.15
5.6.130.0030.02716.16
5.6.120.0060.02317.55
5.6.110.0120.02217.52
5.6.100.0090.03717.52
5.6.90.0130.03817.53
5.6.80.0150.03717.23
5.6.70.0200.04017.21
5.6.60.0030.00714.04
5.6.50.0070.00714.25
5.6.40.0030.00714.07
5.6.30.0040.00814.09
5.6.20.0080.00414.29
5.6.10.0040.00714.00
5.6.00.0000.01414.14
5.5.380.0040.00911.02
5.5.370.0040.00411.05
5.5.360.0070.00011.00
5.5.350.0040.02715.79
5.5.340.0060.04614.56
5.5.330.0030.02515.60
5.5.320.0020.02815.63
5.5.310.0150.03615.76
5.5.300.0130.03714.52
5.5.290.0090.04414.50
5.5.280.0080.03716.15
5.5.270.0000.03316.01
5.5.260.0030.02516.09
5.5.250.0040.04315.74
5.5.240.0110.03515.60
5.5.230.0030.00711.02
5.5.220.0030.00311.17
5.5.210.0000.00711.11
5.5.200.0080.00410.90
5.5.190.0100.00311.13
5.5.180.0030.00511.04
5.5.170.0000.00811.09
5.5.160.0030.00611.20
5.5.150.0140.00010.90
5.5.140.0070.00710.90
5.5.130.0090.00010.90
5.5.120.0120.00011.05
5.5.110.0030.01010.90
5.5.100.0000.00610.97
5.5.90.0100.00311.15
5.5.80.0100.00011.19
5.5.70.0070.00311.16
5.5.60.0030.00711.15
5.5.50.0060.00310.90
5.5.40.0000.00710.90
5.5.30.0030.01011.07
5.5.20.0030.00710.90
5.5.10.0090.00011.16
5.5.00.0090.00311.18
5.4.450.0680.02015.23
5.4.440.0510.03715.25
5.4.430.0100.02715.29
5.4.420.0410.03115.09
5.4.410.0420.03015.21
5.4.400.0440.03015.04
5.4.390.0370.03214.89
5.4.380.0080.03014.81
5.4.370.0180.02814.74
5.4.360.0210.03014.73
5.4.350.0150.03214.92
5.4.340.0170.02914.81
5.4.330.0040.00410.93
5.4.320.0060.01911.70
5.4.310.0060.02511.79
5.4.300.0100.02111.70
5.4.290.0070.01911.71
5.4.280.0060.02011.65
5.4.270.0080.02311.67
5.4.260.0060.02511.73
5.4.250.0020.02711.65
5.4.240.0120.02411.65
5.4.230.0050.02611.63
5.4.220.0020.02211.79
5.4.210.0060.02011.63
5.4.200.0070.01911.63
5.4.190.0070.02011.75
5.4.180.0080.02411.63
5.4.170.0070.01911.63
5.4.160.0080.02311.71
5.4.150.0040.02011.63
5.4.140.0040.02211.51
5.4.130.0070.01911.46
5.4.120.0080.01911.45
5.4.110.0070.01911.44
5.4.100.0070.01911.44
5.4.90.0050.02011.44
5.4.80.0030.02411.45
5.4.70.0020.02111.54
5.4.60.0070.01911.50
5.4.50.0040.02111.44
5.4.40.0020.02311.50
5.4.30.0020.02411.43
5.4.20.0060.02011.53
5.4.10.0060.02111.50
5.4.00.0050.02011.18
5.3.290.0060.02511.85
5.3.280.0030.02311.80
5.3.270.0100.02011.81
5.3.260.0040.02311.81
5.3.250.0070.02111.81
5.3.240.0040.02611.81
5.3.230.0050.02011.80
5.3.220.0060.02111.79
5.3.210.0040.02211.79
5.3.200.0050.01911.79
5.3.190.0040.02211.79
5.3.180.0040.01911.79
5.3.170.0020.02311.78
5.3.160.0090.01711.79
5.3.150.0030.02111.79
5.3.140.0030.02111.78
5.3.130.0060.02411.78
5.3.120.0050.02111.78
5.3.110.0050.02211.78
5.3.100.0040.02211.51
5.3.90.0050.01911.49
5.3.80.0050.01911.49
5.3.70.0070.01811.49
5.3.60.0060.02111.48
5.3.50.0080.02311.45
5.3.40.0100.02011.45
5.3.30.0100.01611.42
5.3.20.0100.01911.31
5.3.10.0140.02111.30
5.3.00.0090.02011.29
5.2.170.0070.01810.04
5.2.160.0070.01910.04
5.2.150.0070.01710.04
5.2.140.0130.01510.04
5.2.130.0070.01610.02
5.2.120.0050.02210.02
5.2.110.0080.01710.02
5.2.100.0040.01810.02
5.2.90.0080.01710.02
5.2.80.0070.01510.02
5.2.70.0090.01510.02
5.2.60.0080.0179.99
5.2.50.0040.0179.98
5.2.40.0060.0169.96
5.2.30.0060.0159.95
5.2.20.0070.0179.96
5.2.10.0060.0179.90
5.2.00.0080.0179.83
5.1.60.0060.0159.47
5.1.50.0040.0149.47
5.1.40.0050.0149.47
5.1.30.0070.0149.64
5.1.20.0040.0159.66
5.1.10.0080.0139.52
5.1.00.0030.0169.51
5.0.50.0050.0098.75
5.0.40.0050.0108.68
5.0.30.0040.0188.59
5.0.20.0050.0118.57
5.0.10.0010.0138.56
5.0.00.0010.0198.55
4.4.90.0060.0077.84
4.4.80.0010.0127.83
4.4.70.0010.0127.83
4.4.60.0020.0097.83
4.4.50.0020.0097.83
4.4.40.0050.0137.80
4.4.30.0040.0087.83
4.4.20.0040.0097.87
4.4.10.0020.0117.88
4.4.00.0040.0147.83
4.3.110.0010.0107.78
4.3.100.0050.0077.78
4.3.90.0030.0097.76
4.3.80.0050.0157.74
4.3.70.0030.0097.77
4.3.60.0020.0107.76
4.3.50.0050.0097.76
4.3.40.0040.0137.72
4.3.30.0020.0127.09
4.3.20.0040.0107.08
4.3.10.0020.0107.06
4.3.00.0070.00712.02

preferences:
38.64 ms | 401 KiB | 5 Q