3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler('myErrorHandler'); register_shutdown_function(function(){ if (strpos($errstr, 'Class')) { var_dump('foo'); return true; } return false; }); function fatalErrorShutdownHandler() { $last_error = error_get_last(); if ($last_error['type'] === E_ERROR) { // fatal error myErrorHandler(E_ERROR, $last_error['message'], $last_error['file'], $last_error['line']); } } Everything::is('awesome'); echo Everything;

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.0040.01118.87
8.3.30.0110.00419.09
8.3.20.0000.00720.35
8.3.10.0060.00323.50
8.3.00.0050.00319.28
8.2.170.0100.01022.96
8.2.160.0070.00720.33
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.01026.16
8.2.120.0040.00422.18
8.2.110.0100.00020.54
8.2.100.0230.00417.70
8.2.90.0000.00819.23
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0080.00017.80
8.2.50.0030.00518.10
8.2.40.0040.00419.66
8.2.30.0000.00718.19
8.2.20.0040.00417.57
8.2.10.0040.00417.91
8.2.00.0000.00717.56
8.1.270.0040.00424.02
8.1.260.0000.00926.35
8.1.250.0080.00028.09
8.1.240.0040.00424.02
8.1.230.0110.00017.61
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00317.10
8.1.180.0030.00518.10
8.1.170.0030.00618.53
8.1.160.0000.00822.00
8.1.150.0070.00018.53
8.1.140.0060.00317.39
8.1.130.0040.00417.78
8.1.120.0040.00417.39
8.1.110.0000.00717.33
8.1.100.0000.00817.25
8.1.90.0000.00717.30
8.1.80.0040.00417.28
8.1.70.0040.00417.29
8.1.60.0090.00017.37
8.1.50.0000.00817.32
8.1.40.0050.00317.45
8.1.30.0050.00317.46
8.1.20.0060.00317.48
8.1.10.0060.00317.40
8.1.00.0070.00017.46
8.0.300.0000.00818.77
8.0.290.0020.00516.75
8.0.280.0000.00718.40
8.0.270.0020.00517.15
8.0.260.0040.00417.16
8.0.250.0000.00716.96
8.0.240.0000.00816.96
8.0.230.0050.00516.82
8.0.220.0000.00716.86
8.0.210.0000.00716.91
8.0.200.0040.00416.84
8.0.190.0030.00616.85
8.0.180.0030.00516.82
8.0.170.0080.00016.86
8.0.160.0050.00216.77
8.0.150.0000.00716.89
8.0.140.0000.00716.84
8.0.130.0030.00313.38
8.0.120.0040.00416.92
8.0.110.0070.00016.88
8.0.100.0040.00416.89
8.0.90.0040.00416.93
8.0.80.0170.00716.88
8.0.70.0030.00616.86
8.0.60.0050.00216.85
8.0.50.0000.00716.90
8.0.30.0120.01116.92
8.0.20.0080.01017.40
8.0.10.0000.00716.80
8.0.00.0030.01416.76
7.4.330.0020.00215.00
7.4.320.0050.00316.52
7.4.300.0060.00016.45
7.4.290.0030.00316.59
7.4.280.0060.00316.53
7.4.270.0030.00316.43
7.4.260.0000.00716.35
7.4.250.0000.00816.50
7.4.240.0020.00516.44
7.4.230.0030.00316.36
7.4.220.0090.01316.48
7.4.210.0040.01216.53
7.4.200.0070.00016.38
7.4.190.0000.00816.69
7.4.160.0060.01016.47
7.4.150.0090.00917.40
7.4.140.0070.01017.86
7.4.130.0050.01316.52
7.4.120.0100.00716.55
7.4.110.0150.00816.48
7.4.100.0130.00716.54
7.4.90.0100.00716.36
7.4.80.0180.00719.39
7.4.70.0100.00716.63
7.4.60.0080.00816.58
7.4.50.0060.00316.36
7.4.40.0100.00716.63
7.4.30.0080.00816.36
7.4.00.0090.00715.02
7.3.330.0000.00513.31
7.3.320.0000.00513.31
7.3.310.0070.00016.13
7.3.300.0000.00716.29
7.3.290.0100.00716.30
7.3.280.0090.01016.26
7.3.270.0130.00617.40
7.3.260.0120.00616.41
7.3.250.0060.01116.34
7.3.240.0130.00716.36
7.3.230.0060.01216.54
7.3.210.0090.01216.44
7.3.200.0100.00719.39
7.3.190.0110.01116.47
7.3.180.0150.00316.43
7.3.170.0060.01316.40
7.3.160.0110.00716.48
7.3.120.0050.01114.83
7.3.110.0090.00914.87
7.3.100.0100.00714.85
7.3.90.0120.00314.88
7.3.80.0090.00014.75
7.3.70.0040.00714.67
7.3.60.0000.01114.94
7.3.50.0060.00914.66
7.3.40.0080.00614.75
7.3.30.0100.00314.63
7.3.20.0040.00816.74
7.3.10.0030.00616.60
7.3.00.0040.00716.48
7.2.330.0140.00316.56
7.2.320.0080.01116.31
7.2.310.0060.01116.69
7.2.300.0090.00916.71
7.2.290.0030.01316.75
7.2.250.0060.00915.09
7.2.240.0100.00715.10
7.2.230.0070.00714.86
7.2.220.0030.01214.93
7.2.210.0070.01514.95
7.2.200.0050.00514.94
7.2.190.0000.00914.98
7.2.180.0030.00914.93
7.2.170.0060.00915.11
7.2.160.0070.00714.62
7.2.150.0110.00716.86
7.2.140.0100.00316.72
7.2.130.0030.01016.56
7.2.120.0030.01316.69
7.2.110.0060.01016.85
7.2.100.0060.01016.86
7.2.90.0030.00916.75
7.2.80.0060.00616.91
7.2.70.0080.00816.96
7.2.60.0030.01216.91
7.2.50.0060.01016.96
7.2.40.0030.00716.63
7.2.30.0100.00716.90
7.2.20.0140.00416.90
7.2.10.0100.00716.79
7.2.00.0030.00918.00
7.1.330.0000.01815.82
7.1.320.0040.00815.85
7.1.310.0030.01215.70
7.1.300.0060.00315.82
7.1.290.0060.00615.67
7.1.280.0000.01015.56
7.1.270.0090.00015.61
7.1.260.0040.01115.82
7.1.250.0030.01015.79
7.1.240.0110.00615.84
7.1.230.0040.01215.82
7.1.220.0030.01015.88
7.1.210.0000.00915.80
7.1.200.0020.01115.75
7.1.190.0060.00915.90
7.1.180.0030.00815.70
7.1.170.0030.00615.80
7.1.160.0090.00615.74
7.1.150.0070.00715.75
7.1.140.0070.00715.82
7.1.130.0060.00815.88
7.1.120.0060.00315.39
7.1.110.0070.00715.90
7.1.100.0050.00616.94
7.1.90.0000.01315.78
7.1.80.0060.00315.50
7.1.70.0050.00716.42
7.1.60.0070.01317.65
7.1.50.0070.01516.18
7.1.40.0100.00715.81
7.1.30.0070.00315.82
7.1.20.0030.01015.88
7.1.10.0040.00715.50
7.1.00.0050.04118.95
7.0.330.0040.00715.38
7.0.320.0030.00615.15
7.0.310.0100.00715.00
7.0.300.0060.00615.21
7.0.290.0060.00915.46
7.0.280.0060.00615.16
7.0.270.0040.00815.17
7.0.260.0040.00715.29
7.0.250.0030.01015.27
7.0.240.0030.00615.48
7.0.230.0070.00715.40
7.0.220.0090.00415.40
7.0.210.0040.00815.34
7.0.200.0100.00516.10
7.0.190.0080.00015.39
7.0.180.0050.00315.34
7.0.170.0030.00615.52
7.0.160.0100.00315.43
7.0.150.0040.00415.50
7.0.140.0060.04018.65
7.0.130.0000.01115.30
7.0.120.0030.00615.40
7.0.110.0110.00415.29
7.0.100.0030.01415.43
7.0.90.0090.00015.38
7.0.80.0030.00515.04
7.0.70.0070.00715.36
7.0.60.0070.04217.73
7.0.50.0050.04316.67
7.0.40.0080.02316.82
7.0.30.0180.03916.93
7.0.20.0120.04916.93
7.0.10.0100.02016.79
7.0.00.0030.02716.86
5.6.400.0090.00614.29
5.6.390.0060.00614.25
5.6.380.0070.00714.28
5.6.370.0030.01313.85
5.6.360.0130.00314.27
5.6.350.0070.00714.14
5.6.340.0000.01214.22
5.6.330.0070.00713.86
5.6.320.0030.00614.51
5.6.310.0000.01114.45
5.6.300.0070.01014.41
5.6.290.0000.01114.45
5.6.280.0010.04117.62
5.6.270.0000.01513.96
5.6.260.0030.01414.32
5.6.250.0000.01513.98
5.6.240.0040.00713.96
5.6.230.0170.00014.20
5.6.220.0110.00414.26
5.6.210.0040.03217.39
5.6.200.0060.02116.21
5.6.190.0030.04017.55
5.6.180.0150.02017.30
5.6.170.0100.02217.26
5.6.160.0020.02717.31
5.6.150.0050.02716.18
5.6.140.0110.03716.15
5.6.130.0040.03616.07
5.6.120.0030.04817.59
5.6.110.0070.04717.71
5.6.100.0130.04017.64
5.6.90.0090.02817.52
5.6.80.0080.02017.21
5.6.70.0080.00813.88
5.6.60.0000.01213.97
5.6.50.0070.00713.95
5.6.40.0040.01113.88
5.6.30.0030.00714.08
5.6.20.0030.01014.12
5.6.10.0090.00613.92
5.6.00.0070.00314.11
5.5.380.0040.01114.21
5.5.370.0060.00314.07
5.5.360.0120.00314.27
5.5.350.0160.03817.12
5.5.340.0100.04216.06
5.5.330.0110.03917.27
5.5.320.0200.04217.20
5.5.310.0210.04217.31
5.5.300.0030.04815.93
5.5.290.0070.04416.21
5.5.280.0070.02317.23
5.5.270.0030.03317.49
5.5.260.0120.04017.47
5.5.250.0050.04317.20
5.5.240.0080.03817.18
5.5.230.0030.00713.83
5.5.220.0100.00313.96
5.5.210.0000.01614.34
5.5.200.0000.01013.97
5.5.190.0070.00313.81
5.5.180.0090.00314.04
5.5.170.0060.00614.02
5.5.160.0040.00814.27
5.5.150.0090.00313.92
5.5.140.0070.00614.19
5.5.130.0030.01014.11
5.5.120.0090.00414.34
5.5.110.0060.00614.21
5.5.100.0080.00014.12
5.5.90.0060.01014.17
5.5.80.0100.00314.01
5.5.70.0040.00414.41
5.5.60.0030.01314.29
5.5.50.0000.01214.13
5.5.40.0040.00413.89
5.5.30.0070.00313.79
5.5.20.0030.01314.02
5.5.10.0120.00314.03
5.5.00.0080.00413.95
5.4.450.0160.02215.21
5.4.440.0300.02815.34
5.4.430.0160.02515.19
5.4.420.0180.02614.94
5.4.410.0370.02415.09
5.4.400.0150.02514.87
5.4.390.0190.03115.08
5.4.380.0200.03214.60
5.4.370.0200.02614.95
5.4.360.0170.02714.76
5.4.350.0150.02914.74
5.4.340.0270.02514.70
5.4.330.0080.00410.83
5.4.320.0050.02211.83
5.4.310.0040.02311.55
5.4.300.0040.02511.68
5.4.290.0060.03511.68
5.4.280.0070.03311.58
5.4.270.0090.03211.75
5.4.260.0130.04911.66
5.4.250.0040.03211.68
5.4.240.0100.02511.68
5.4.230.0090.02611.58
5.4.220.0070.02811.62
5.4.210.0060.03411.52
5.4.200.0080.03111.50
5.4.190.0120.02611.59
5.4.180.0090.02911.76
5.4.170.0060.03311.74
5.4.160.0070.02611.49
5.4.150.0040.02911.69
5.4.140.0110.02611.48
5.4.130.0110.03711.55
5.4.120.0090.02711.27
5.4.110.0070.02711.65
5.4.100.0060.02511.48
5.4.90.0070.02711.44
5.4.80.0060.02811.47
5.4.70.0060.02611.47
5.4.60.0050.02711.49
5.4.50.0100.02511.52
5.4.40.0040.03111.46
5.4.30.0060.03011.49
5.4.20.0080.03011.44
5.4.10.0100.02711.44
5.4.00.0090.04111.21
5.3.290.0040.03211.60
5.3.280.0130.04011.60
5.3.270.0040.03611.58
5.3.260.0090.03211.65
5.3.250.0050.03111.61
5.3.240.0090.02511.50
5.3.230.0070.03411.47
5.3.220.0050.02611.47
5.3.210.0080.02111.45
5.3.200.0040.02311.61
5.3.190.0050.02311.52
5.3.180.0080.02011.67
5.3.170.0080.02211.61
5.3.160.0050.02411.53
5.3.150.0040.02811.62
5.3.140.0080.03111.66
5.3.130.0070.04011.60
5.3.120.0090.04211.61
5.3.110.0070.03511.65
5.3.100.0060.02911.33
5.3.90.0040.03211.25
5.3.80.0060.03011.24
5.3.70.0080.02911.23
5.3.60.0080.03011.30
5.3.50.0160.04611.17
5.3.40.0100.05111.25
5.3.30.0060.02611.11
5.3.20.0070.02711.00
5.3.10.0040.02810.92
5.3.00.0100.02510.97
5.2.170.0080.0349.18
5.2.160.0070.0299.18
5.2.150.0070.0309.18
5.2.140.0080.0329.18
5.2.130.0070.0329.14
5.2.120.0070.0349.14
5.2.110.0060.0379.14
5.2.100.0050.0359.14
5.2.90.0050.0419.14
5.2.80.0080.0429.14
5.2.70.0090.0419.14
5.2.60.0100.0409.09
5.2.50.0090.0409.06
5.2.40.0050.0409.04
5.2.30.0070.0419.01
5.2.20.0090.0389.00
5.2.10.0070.0408.93
5.2.00.0090.0408.78
5.1.60.0050.0368.06
5.1.50.0120.0308.06
5.1.40.0070.0358.04
5.1.30.0120.0618.39
5.1.20.0100.0598.41
5.1.10.0080.0508.14
5.1.00.0060.0288.14
5.0.50.0090.0476.62
5.0.40.0050.0266.48
5.0.30.0090.0356.29
5.0.20.0050.0266.27
5.0.10.0030.0286.24
5.0.00.0050.0336.23
4.4.90.0050.0154.78
4.4.80.0040.0164.75
4.4.70.0060.0154.76
4.4.60.0040.0164.76
4.4.50.0040.0194.77
4.4.40.0070.0264.71
4.4.30.0050.0144.76
4.4.20.0040.0154.85
4.4.10.0080.0134.85
4.4.00.0020.0294.76
4.3.110.0120.0164.67
4.3.100.0120.0294.66
4.3.90.0120.0314.63
4.3.80.0150.0604.58
4.3.70.0060.0334.63
4.3.60.0070.0224.62
4.3.50.0050.0284.63
4.3.40.0070.0264.54
4.3.30.0030.0183.29
4.3.20.0030.0183.27
4.3.10.0050.0253.22
4.3.00.0000.01716.15

preferences:
48.01 ms | 400 KiB | 5 Q