3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_errorhandler($errno,$errormsg) { global $my_var; $my_var = 0; echo "EROOR: $errormsg\n"; return null; } set_error_handler("my_errorhandler"); $my_var = str_repeat("A",null); var_dump($my_var); ?>

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.40.0070.01118.70
8.3.30.0100.00319.04
8.3.20.0050.00320.29
8.3.10.0080.00023.58
8.3.00.0040.00419.38
8.2.170.0090.00622.96
8.2.160.0030.01220.23
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00421.04
8.2.110.0060.00320.43
8.2.100.0070.00418.22
8.2.90.0060.00619.23
8.2.80.0080.00017.97
8.2.70.0000.00817.59
8.2.60.0000.00817.93
8.2.50.0090.00318.07
8.2.40.0000.00718.22
8.2.30.0030.00618.12
8.2.20.0000.00717.60
8.2.10.0000.00718.11
8.2.00.0040.00417.86
8.1.270.0040.00423.98
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00322.18
8.1.230.0070.00419.01
8.1.220.0080.00017.74
8.1.210.0070.00318.77
8.1.200.0100.00017.22
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0050.00318.66
8.1.160.0040.00422.00
8.1.150.0000.00718.87
8.1.140.0040.00417.31
8.1.130.0070.00017.75
8.1.120.0030.00517.30
8.1.110.0030.00517.39
8.1.100.0050.00217.35
8.1.90.0000.00717.29
8.1.80.0070.00017.39
8.1.70.0030.00317.27
8.1.60.0050.00517.52
8.1.50.0080.00017.36
8.1.40.0040.00417.32
8.1.30.0040.00417.40
8.1.20.0040.00417.52
8.1.10.0050.00217.37
8.1.00.0000.00717.41
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.25
8.0.270.0000.00717.20
8.0.260.0070.00017.20
8.0.250.0030.00316.89
8.0.240.0030.00516.98
8.0.230.0040.00416.80
8.0.220.0000.00716.71
8.0.210.0030.00316.75
8.0.200.0030.00316.93
8.0.190.0000.00716.86
8.0.180.0000.00716.76
8.0.170.0080.00016.72
8.0.160.0030.00316.65
8.0.150.0050.00316.76
8.0.140.0000.00816.68
8.0.130.0000.00613.30
8.0.120.0000.00716.70
8.0.110.0000.00816.85
8.0.100.0030.00316.84
8.0.90.0000.00816.78
8.0.80.0100.00716.91
8.0.70.0070.00016.72
8.0.60.0040.00416.81
8.0.50.0000.00716.61
8.0.30.0120.01316.85
8.0.20.0120.01017.40
8.0.10.0070.00016.81
8.0.00.0110.00716.82
7.4.330.0000.00515.13
7.4.320.0040.00416.51
7.4.300.0000.00616.46
7.4.290.0000.00716.57
7.4.280.0000.00816.52
7.4.270.0040.00416.46
7.4.260.0030.00616.41
7.4.250.0000.00716.45
7.4.240.0060.00216.46
7.4.230.0000.00716.45
7.4.220.0030.01316.60
7.4.210.0090.00616.53
7.4.200.0050.00316.52
7.4.160.0090.00916.50
7.4.150.0160.01017.40
7.4.140.0060.01117.86
7.4.130.0080.01016.30
7.4.120.0060.01016.36
7.4.110.0100.01116.33
7.4.100.0130.00916.59
7.4.90.0030.01316.41
7.4.80.0100.00619.39
7.4.70.0120.01216.55
7.4.60.0170.00016.55
7.4.50.0060.00016.51
7.4.40.0110.00516.49
7.4.30.0030.01216.60
7.4.00.0000.01615.02
7.3.330.0000.00513.11
7.3.320.0000.00513.11
7.3.310.0070.00016.07
7.3.300.0040.00416.04
7.3.290.0090.00716.18
7.3.280.0070.00916.15
7.3.270.0130.01017.40
7.3.260.0100.00716.21
7.3.250.0120.00716.30
7.3.240.0030.01516.23
7.3.230.0180.00016.39
7.3.210.0030.01616.16
7.3.200.0120.00619.39
7.3.190.0110.00516.37
7.3.180.0030.01216.36
7.3.170.0150.00616.34
7.3.160.0100.00716.24
7.2.330.0150.00316.29
7.2.320.0090.00916.69
7.2.310.0120.00616.49
7.2.300.0080.00916.59
7.2.290.0130.00316.37
7.2.110.0080.00816.51
7.2.100.0030.01016.43
7.2.90.0030.01016.50
7.2.80.0030.01016.20
7.2.70.0030.00616.66
7.2.60.0070.00716.58
7.2.50.0120.00416.74
7.2.40.0030.01016.73
7.2.30.0070.00716.75
7.2.20.0130.00316.47
7.2.10.0000.01816.58
7.2.00.0080.00518.19
7.1.230.0070.00715.67
7.1.220.0040.00815.80
7.1.210.0070.00315.77
7.1.200.0070.00715.63
7.1.190.0040.01115.63
7.1.180.0080.00015.52
7.1.170.0000.00915.54
7.1.160.0000.00815.66
7.1.150.0070.00715.65
7.1.140.0130.00015.72
7.1.130.0000.01415.52
7.1.120.0040.00815.49
7.1.110.0080.00815.80
7.1.100.0070.00716.77
7.1.90.0000.01215.79
7.1.80.0060.01015.65
7.1.70.0020.01216.40
7.1.60.0110.00917.63
7.1.50.0020.01316.32
7.1.40.0080.00815.71
7.1.30.0070.00715.86
7.1.20.0130.00015.95
7.1.10.0000.01315.53
7.1.00.0020.04519.04
7.0.310.0050.00515.08
7.0.300.0030.01015.05
7.0.290.0030.01215.43
7.0.280.0030.00715.39
7.0.270.0040.00815.30
7.0.260.0040.01215.57
7.0.250.0090.00615.24
7.0.240.0030.00715.36
7.0.230.0070.00715.48
7.0.220.0000.00915.32
7.0.210.0030.01015.59
7.0.200.0050.00616.02
7.0.190.0100.00015.49
7.0.180.0070.00715.44
7.0.170.0030.01015.41
7.0.160.0030.00915.13
7.0.150.0060.00915.39
7.0.140.0040.04118.76
7.0.130.0040.01115.32
7.0.120.0060.00915.46
7.0.110.0050.00515.45
7.0.100.0030.00515.52
7.0.90.0000.01015.47
7.0.80.0030.01015.09
7.0.70.0040.00415.34
7.0.60.0040.04217.58
7.0.50.0050.02216.62
7.0.40.0060.03016.81
7.0.30.0160.02016.64
7.0.20.0090.02616.71
7.0.10.0130.02816.79
7.0.00.0020.02616.89
5.6.380.0070.00414.08
5.6.370.0040.01114.19
5.6.360.0000.01614.39
5.6.350.0070.00714.05
5.6.340.0030.00614.30
5.6.330.0070.00713.72
5.6.320.0070.00714.06
5.6.310.0030.01014.24
5.6.300.0040.00414.52
5.6.290.0110.00014.22
5.6.280.0100.03317.42
5.6.270.0030.01014.13
5.6.260.0030.00914.51
5.6.250.0110.00414.25
5.6.240.0030.01014.38
5.6.230.0070.00714.46
5.6.220.0080.00814.01
5.6.210.0060.03117.39
5.6.200.0080.04716.22
5.6.190.0070.04617.46
5.6.180.0090.02517.52
5.6.170.0190.03817.45
5.6.160.0030.04817.27
5.6.150.0110.02016.12
5.6.140.0070.04216.10
5.6.130.0050.02316.14
5.6.120.0080.04317.63
5.6.110.0030.02817.59
5.6.100.0060.03617.56
5.6.90.0030.04817.66
5.6.80.0070.03317.25
5.6.70.1630.01917.17
5.6.60.0030.00913.91
5.6.50.0080.00414.23
5.6.40.0110.00414.11
5.6.30.0030.00314.45
5.6.20.0000.01114.04
5.6.10.0060.00613.97
5.6.00.0090.00314.18
5.5.380.0060.00312.79
5.5.370.0060.00612.79
5.5.360.0060.00312.79
5.5.350.0100.04216.60
5.5.340.0060.03915.44
5.5.330.0000.02516.55
5.5.320.0070.04016.49
5.5.310.0130.02616.52
5.5.300.0050.02615.36
5.5.290.0050.02215.43
5.5.280.0080.04116.80
5.5.270.0030.03216.83
5.5.260.0050.03616.71
5.5.250.0050.04416.68
5.5.240.0120.04216.57
5.5.230.0080.00312.79
5.5.220.0020.00212.79
5.5.210.0040.00412.79
5.5.200.0060.00612.79
5.5.190.0050.00012.79
5.5.180.0030.00712.79
5.5.170.0060.00614.14
5.5.160.0040.00412.79
5.5.150.0030.00712.79
5.5.140.0060.00612.79
5.5.130.0050.00012.79
5.5.120.0050.00512.79
5.5.110.0090.00012.79
5.5.100.0070.00412.79
5.5.90.0040.00412.79
5.5.80.0030.00712.79
5.5.70.0030.00312.79
5.5.60.0050.00512.79
5.5.50.0060.00312.79
5.5.40.0000.01112.79
5.5.30.0100.00012.79
5.5.20.0100.00012.79
5.5.10.0000.01012.79
5.5.00.0000.01012.79
5.4.450.0130.02016.18
5.4.440.0250.02115.99
5.4.430.0080.02516.21
5.4.420.0330.02216.04
5.4.410.0380.02116.06
5.4.400.0150.02015.93
5.4.390.0250.02115.97
5.4.380.0220.02515.77
5.4.370.0220.04015.67
5.4.360.0420.03415.81
5.4.350.0270.04015.78
5.4.340.0250.02815.68
5.4.330.0030.00712.79
5.4.320.0020.02212.65
5.4.310.0070.02312.64
5.4.300.0070.02012.65
5.4.290.0080.01912.65
5.4.280.0060.02212.59
5.4.270.0050.02412.59
5.4.260.0070.02112.59
5.4.250.0030.02312.59
5.4.240.0030.02312.60
5.4.230.0020.02512.59
5.4.220.0060.02112.59
5.4.210.0060.01812.59
5.4.200.0040.02212.59
5.4.190.0090.01712.59
5.4.180.0060.02212.59
5.4.170.0060.02212.59
5.4.160.0050.02212.59
5.4.150.0060.01712.59
5.4.140.0050.02212.43
5.4.130.0070.01912.43
5.4.120.0020.02212.40
5.4.110.0020.02112.40
5.4.100.0100.01612.40
5.4.90.0060.02012.40
5.4.80.0050.02212.40
5.4.70.0050.02112.40
5.4.60.0060.01812.40
5.4.50.0050.02512.40
5.4.40.0050.02412.39
5.4.30.0060.02012.39
5.4.20.0080.01912.39
5.4.10.0070.01812.39
5.4.00.0040.02612.14
5.3.290.0070.02112.79
5.3.280.0050.02212.75
5.3.270.0040.02512.76
5.3.260.0070.02212.75
5.3.250.0050.02212.76
5.3.240.0060.02212.75
5.3.230.0050.02412.75
5.3.220.0060.02412.73
5.3.210.0060.02212.74
5.3.200.0070.02312.73
5.3.190.0060.02812.73
5.3.180.0050.02112.73
5.3.170.0050.01912.73
5.3.160.0040.02112.73
5.3.150.0020.02412.73
5.3.140.0090.01912.72
5.3.130.0060.02212.72
5.3.120.0050.02112.72
5.3.110.0020.02712.72
5.3.100.0030.02312.45
5.3.90.0040.02612.45
5.3.80.0040.02012.44
5.3.70.0050.02112.44
5.3.60.0060.02012.43
5.3.50.0030.02112.41
5.3.40.0050.01812.41
5.3.30.0030.02012.38
5.3.20.0050.02312.28
5.3.10.0060.02112.26
5.3.00.0020.02212.25
5.2.170.0030.01811.00
5.2.160.0050.01711.00
5.2.150.0070.01811.00
5.2.140.0060.01611.00
5.2.130.0040.01710.98
5.2.120.0030.01610.98
5.2.110.0020.02110.98
5.2.100.0020.01810.98
5.2.90.0060.02310.98
5.2.80.0070.02110.98
5.2.70.0050.01710.98
5.2.60.0040.01910.96
5.2.50.0050.01810.94
5.2.40.0080.01310.93
5.2.30.0050.01710.92
5.2.20.0060.01410.91
5.2.10.0030.02110.86
5.2.00.0030.01610.79
5.1.60.0050.01310.44
5.1.50.0030.01510.44
5.1.40.0060.01210.43
5.1.30.0040.01310.60
5.1.20.0050.01510.61
5.1.10.0040.01310.48
5.1.00.0040.01610.47
5.0.50.0040.0139.71
5.0.40.0030.0119.64
5.0.30.0040.0179.55
5.0.20.0040.0119.53
5.0.10.0030.0139.52
5.0.00.0030.0189.52
4.4.90.0030.0088.79
4.4.80.0020.0118.77
4.4.70.0030.0108.77
4.4.60.0030.0098.77
4.4.50.0010.0118.78
4.4.40.0020.0148.75
4.4.30.0020.0118.78
4.4.20.0030.0098.82
4.4.10.0030.0128.82
4.4.00.0030.0148.77
4.3.110.0030.0098.73
4.3.100.0010.0118.73
4.3.90.0040.0088.71
4.3.80.0040.0138.69
4.3.70.0010.0128.71
4.3.60.0040.0098.71
4.3.50.0030.0118.71
4.3.40.0020.0148.66
4.3.30.0010.0118.04
4.3.20.0020.0108.03
4.3.10.0050.0098.01
4.3.00.0000.01315.60

preferences:
47.36 ms | 400 KiB | 5 Q