3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class Course { function get_course($assigned_id) { echo 'getCourse: '.$assigned_id; } } $assigned_id = "testCourseForEditor"; // testing if ($assigned_id) { $course = new Course(); $course_data = $course->get_course($assigned_id); } else { $new_course = TRUE; }

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.0140.00318.55
8.3.50.0080.00722.04
8.3.40.0140.00318.71
8.3.30.0070.01118.84
8.3.20.0040.00420.25
8.3.10.0000.00823.66
8.3.00.0080.00022.43
8.2.180.0180.00316.63
8.2.170.0140.00022.96
8.2.160.0100.00322.07
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00017.50
8.2.110.0090.00022.08
8.2.100.0080.00317.78
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0030.00617.93
8.2.50.0030.00618.07
8.2.40.0040.00417.98
8.2.30.0000.00718.12
8.2.20.0000.00717.53
8.2.10.0000.00817.68
8.2.00.0040.00417.66
8.1.280.0170.00325.92
8.1.270.0030.00622.19
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.96
8.1.230.0040.00719.20
8.1.220.0000.00917.79
8.1.210.0040.00418.77
8.1.200.0060.00617.23
8.1.190.0110.00017.60
8.1.180.0000.00818.10
8.1.170.0030.00518.59
8.1.160.0060.00321.93
8.1.150.0060.00318.50
8.1.140.0040.00417.30
8.1.130.0000.00717.83
8.1.120.0080.00017.37
8.1.110.0000.01117.41
8.1.100.0040.00417.39
8.1.90.0040.00417.28
8.1.80.0040.00417.44
8.1.70.0000.00717.37
8.1.60.0060.00317.46
8.1.50.0030.00517.57
8.1.40.0040.00417.52
8.1.30.0050.00317.64
8.1.20.0000.00817.68
8.1.10.0040.00417.45
8.1.00.0050.00317.40
8.0.300.0040.00418.77
8.0.290.0040.00417.13
8.0.280.0030.00318.45
8.0.270.0070.00017.17
8.0.260.0000.00816.82
8.0.250.0070.00016.92
8.0.240.0000.00816.99
8.0.230.0000.00716.94
8.0.220.0050.00316.78
8.0.210.0040.00416.86
8.0.200.0030.00516.94
8.0.190.0040.00416.85
8.0.180.0000.00716.87
8.0.170.0040.00416.92
8.0.160.0050.00216.79
8.0.150.0040.00416.79
8.0.140.0070.00016.86
8.0.130.0050.00013.36
8.0.120.0040.00416.88
8.0.110.0040.00416.88
8.0.100.0040.00416.79
8.0.90.0040.00416.77
8.0.80.0070.00716.77
8.0.70.0000.00816.79
8.0.60.0040.00416.83
8.0.50.0050.00316.82
8.0.30.0060.01817.13
8.0.20.0140.00817.40
8.0.10.0050.00216.96
8.0.00.0140.00616.72
7.4.330.0020.00215.00
7.4.320.0040.00416.51
7.4.300.0030.00316.52
7.4.290.0030.00316.51
7.4.280.0030.00316.51
7.4.270.0070.00016.52
7.4.260.0040.00416.56
7.4.250.0020.00516.47
7.4.240.0040.00316.49
7.4.230.0030.00316.30
7.4.220.0070.01716.62
7.4.210.0110.00516.57
7.4.200.0030.00316.61
7.4.190.0000.00716.64
7.4.160.0090.00616.66
7.4.150.0120.01217.40
7.4.140.0130.00617.86
7.4.130.0110.00516.42
7.4.120.0100.00816.58
7.4.110.0090.01216.51
7.4.100.0100.01016.52
7.4.90.0100.00716.52
7.4.80.0130.00316.44
7.4.70.0060.00916.61
7.4.60.0130.00316.35
7.4.50.0000.00516.37
7.4.40.0070.00422.77
7.4.30.0070.01316.63
7.4.00.0090.00615.11
7.3.330.0050.00013.06
7.3.320.0030.00313.27
7.3.310.0040.00416.25
7.3.300.0030.00316.10
7.3.290.0070.01116.25
7.3.280.0120.00816.27
7.3.270.0170.00017.40
7.3.260.0090.00916.46
7.3.250.0090.01016.30
7.3.240.0100.00716.39
7.3.230.0120.00616.39
7.3.210.0170.00316.28
7.3.200.0070.01519.39
7.3.190.0140.01116.36
7.3.180.0090.01516.11
7.3.170.0160.00016.38
7.3.160.0090.00616.37
7.3.120.0070.01014.93
7.2.330.0030.01816.66
7.2.320.0140.00416.71
7.2.310.0070.01016.82
7.2.300.0110.00616.79
7.2.290.0160.00616.44
7.2.60.0030.01316.57
7.2.50.0060.00616.79
7.1.200.0040.00415.97
7.1.70.0000.01617.25
7.1.60.0070.01017.39
7.1.50.0040.01417.04
7.1.40.0030.01016.52
7.1.30.0110.01116.78
7.1.20.0030.01016.74
7.1.10.0000.00916.72
7.1.00.0060.00316.49
7.0.200.0060.00916.93
7.0.190.0040.01116.75
7.0.180.0000.01916.35
7.0.170.0000.01116.35
7.0.160.0040.00416.35
7.0.150.0040.00416.35
7.0.140.0030.00716.35
7.0.130.0040.00416.54
7.0.120.0040.00716.66
7.0.110.0040.00416.42
7.0.100.0000.00816.35
7.0.90.0020.00516.35
7.0.80.0030.00616.35
7.0.70.0040.00416.36
7.0.60.0030.00916.35
7.0.50.0000.00716.35
7.0.40.0050.00216.35
7.0.30.0030.01316.35
7.0.20.0040.01116.35
7.0.10.0000.00816.35
7.0.00.0000.00716.35
5.6.300.0060.03920.74
5.6.290.0100.03620.83
5.6.280.0030.04320.89
5.6.270.0000.04421.00
5.6.260.0000.04820.90
5.6.250.0140.03120.88
5.6.240.0070.04720.84
5.6.230.0030.04020.84
5.6.220.0100.06420.85
5.6.210.0030.05920.97
5.6.200.0000.04920.84
5.6.190.0070.03720.95
5.6.180.0030.04420.93
5.6.170.0100.03321.03
5.6.160.0170.05321.05
5.6.150.0070.06920.75
5.6.140.0030.05220.76
5.6.130.0130.04120.84
5.6.120.0070.04120.86
5.6.110.0000.06321.02
5.6.100.0070.04421.00
5.6.90.0000.05220.81
5.6.80.0060.03520.41
5.6.70.0030.08720.39
5.6.60.0000.06820.22
5.6.50.0070.03720.20
5.6.40.0030.04120.39
5.6.30.0070.04920.39
5.6.20.0070.05120.38
5.6.10.0030.06720.30
5.6.00.0070.07020.12
5.5.380.0000.05317.46
5.5.370.0030.04117.61
5.5.360.0100.03617.61
5.5.350.0070.04817.55
5.5.340.0000.04718.09
5.5.330.0070.05618.06
5.5.320.0070.05918.09
5.5.310.0030.07918.09
5.5.300.0030.07818.00
5.5.290.0070.04718.17
5.5.280.0060.04518.12
5.5.270.0030.04318.11
5.5.260.0000.04718.11
5.5.250.0000.04917.52
5.5.240.0030.06017.13
5.5.230.0000.05517.47
5.5.220.0000.04017.50
5.5.210.0030.03817.40
5.5.200.0060.03417.44
5.5.190.0030.05017.47
5.5.180.0030.04117.05
5.5.160.0000.04117.21
5.5.150.0070.04017.43
5.5.140.0030.06017.20
5.5.130.0000.04617.35
5.5.120.0070.03417.47
5.5.110.0000.04117.46
5.5.100.0000.04117.23
5.5.90.0030.06417.34
5.5.80.0060.05117.37
5.5.70.0000.08117.34
5.5.60.0070.06617.11
5.5.50.0030.04317.26
5.5.40.0060.04917.32
5.5.30.0030.07916.96
5.5.20.0030.03717.26
5.5.10.0070.07317.10
5.5.00.0000.06817.35
5.4.450.0000.04719.39
5.4.440.0100.04919.46
5.4.430.0070.06619.27
5.4.420.0000.04419.24
5.4.410.0130.05019.41
5.4.400.0000.08418.95
5.4.390.0060.07118.95
5.4.380.0040.03919.22
5.4.370.0070.03519.19
5.4.360.0100.03618.98
5.4.350.0030.03818.98
5.4.340.0070.08219.22
5.4.320.0030.04118.94
5.4.310.0000.04119.21
5.4.300.0000.04418.94
5.4.290.0040.03919.23
5.4.280.0000.04118.90
5.4.270.0000.05019.07
5.4.260.0000.04918.99
5.4.250.0030.04918.87
5.4.240.0070.07718.91
5.4.230.0030.05119.06
5.4.220.0090.03719.04
5.4.210.0030.07819.09
5.4.200.0030.05919.20
5.4.190.0100.04218.93
5.4.180.0030.03719.16
5.4.170.0100.04419.11
5.4.160.0070.06719.10
5.4.150.0130.03618.95
5.4.140.0030.04116.69
5.4.130.0000.04316.54
5.4.120.0100.04916.77
5.4.110.0040.03916.81
5.4.100.0000.03816.71
5.4.90.0170.03416.48
5.4.80.0030.04016.69
5.4.70.0090.03816.76
5.4.60.0060.05816.73
5.4.50.0070.03716.46
5.4.40.0030.03416.81
5.4.30.0030.03816.45
5.4.20.0160.03516.74
5.4.10.0030.07016.61
5.4.00.0000.04116.35
5.3.290.0060.03516.35
5.3.280.0070.05516.35
5.3.270.0100.08916.35
5.3.260.0060.03416.35
5.3.250.0030.04916.35
5.3.240.0000.04816.35
5.3.230.0000.04816.35
5.3.220.0030.03616.35
5.3.210.0060.03616.35
5.3.200.0000.04316.35
5.3.190.0000.03816.35
5.3.180.0030.04116.35
5.3.170.0000.05716.35
5.3.160.0070.07316.35
5.3.150.0000.04216.35
5.3.140.0060.03416.35
5.3.130.0100.03716.35
5.3.120.0000.04016.35
5.3.110.0000.04316.35
5.3.100.0070.03716.35
5.3.90.0030.06116.35
5.3.80.0030.04016.35
5.3.70.0000.03816.35
5.3.60.0060.03116.35
5.3.50.0070.04016.35
5.3.40.0030.03616.35
5.3.30.0070.06916.35
5.3.20.0000.05516.35
5.3.10.0000.03616.35
5.3.00.0000.05516.35
5.2.170.0000.04016.35
5.2.160.0000.03116.35
5.2.150.0000.04116.35
5.2.140.0030.04216.35
5.2.130.0030.03116.35
5.2.120.0000.03016.35
5.2.110.0030.02716.35
5.2.100.0000.03016.35
5.2.90.0030.03416.35
5.2.80.0000.06616.35
5.2.70.0000.03216.35
5.2.60.0000.03416.35
5.2.50.0030.03016.35
5.2.40.0070.02916.35
5.2.30.0030.02816.35
5.2.20.0030.02716.35
5.2.10.0030.03216.35
5.2.00.0000.03516.35
5.1.60.0030.02516.35
5.1.50.0000.02816.35
5.1.40.0030.03616.35
5.1.30.0060.02516.35
5.1.20.0000.03016.35
5.1.10.0000.02816.35
5.1.00.0030.02816.35
5.0.50.0030.02316.35
5.0.40.0000.02616.35
5.0.30.0100.03516.35
5.0.20.0000.02216.35
5.0.10.0000.02716.35
5.0.00.0000.03216.35
4.4.90.0000.02116.35
4.4.80.0040.01916.35
4.4.70.0000.04016.35
4.4.60.0000.02716.35
4.4.50.0030.01316.35
4.4.40.0030.02816.35
4.4.30.0030.01316.35
4.4.20.0030.02016.35
4.4.10.0000.01716.35
4.4.00.0000.02816.35
4.3.110.0030.01616.35
4.3.100.0000.02016.35
4.3.90.0030.01816.35
4.3.80.0000.02516.35
4.3.70.0030.01316.35
4.3.60.0030.01316.35
4.3.50.0000.01616.35
4.3.40.0000.02516.35
4.3.30.0000.01716.35
4.3.20.0070.02116.35
4.3.10.0040.01516.35
4.3.00.0040.02116.35

preferences:
40.28 ms | 401 KiB | 5 Q