3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface AnswerInterface { public function get(); public function the(); public function answer(); } class Answer implements AnswerInterface { public function get() { return 4; } } $answer = new Answer; var_dump($answer);

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.0170.00316.63
8.3.50.0120.00717.49
8.3.40.0000.01518.71
8.3.30.0090.00618.59
8.3.20.0000.00718.65
8.3.10.0040.00420.29
8.3.00.0030.00619.26
8.2.180.0110.01116.59
8.2.170.0110.00722.96
8.2.160.0070.00721.05
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0050.00226.16
8.2.120.0040.00420.73
8.2.110.0060.00319.22
8.2.100.0040.00717.63
8.2.90.0080.00019.09
8.2.80.0030.00617.97
8.2.70.0030.00617.50
8.2.60.0030.00617.80
8.2.50.0050.00518.07
8.2.40.0000.00919.75
8.2.30.0040.00417.97
8.2.20.0000.00817.66
8.2.10.0040.00417.64
8.2.00.0040.00817.74
8.1.280.0030.01025.92
8.1.270.0080.00024.66
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0030.00620.93
8.1.230.0070.00417.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.01117.35
8.1.190.0060.00317.23
8.1.180.0100.00018.10
8.1.170.0040.00418.59
8.1.160.0070.00318.78
8.1.150.0020.00518.61
8.1.140.0000.00717.39
8.1.130.0030.00317.73
8.1.120.0000.00717.33
8.1.110.0000.00717.39
8.1.100.0040.00417.38
8.1.90.0020.00517.32
8.1.80.0040.00417.43
8.1.70.0040.00417.35
8.1.60.0040.00417.41
8.1.50.0040.00417.34
8.1.40.0040.00717.43
8.1.30.0070.00017.44
8.1.20.0000.00817.65
8.1.10.0030.00517.24
8.1.00.0050.00317.38
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.40
8.0.270.0030.00317.20
8.0.260.0030.00316.82
8.0.250.0060.00316.96
8.0.240.0040.00416.83
8.0.230.0070.00017.00
8.0.220.0000.00716.81
8.0.210.0000.00716.85
8.0.200.0070.00016.82
8.0.190.0000.00816.98
8.0.180.0000.00716.93
8.0.170.0060.00316.84
8.0.160.0070.00016.86
8.0.150.0040.00416.86
8.0.140.0000.00816.88
8.0.130.0060.00013.35
8.0.120.0070.00016.80
8.0.110.0000.00716.93
8.0.100.0030.00316.77
8.0.90.0000.00716.92
8.0.80.0030.01316.95
8.0.70.0070.00016.75
8.0.60.0040.00416.72
8.0.50.0040.00416.82
8.0.30.0110.00816.94
8.0.20.0110.00717.18
8.0.10.0000.00717.04
8.0.00.0120.00716.72
7.4.330.0050.00012.94
7.4.320.0000.00616.53
7.4.300.0070.00016.46
7.4.290.0030.00316.46
7.4.280.0040.00416.37
7.4.270.0050.00216.45
7.4.260.0030.00313.13
7.4.250.0030.00516.51
7.4.240.0000.00716.53
7.4.230.0040.00416.43
7.4.220.0150.00316.49
7.4.210.0110.00416.57
7.4.200.0040.00416.60
7.4.190.0000.00716.35
7.4.160.0030.01216.42
7.4.150.0040.01516.60
7.4.140.0020.01516.46
7.4.130.0050.01416.51
7.4.120.0100.00616.50
7.4.110.0180.00316.38
7.4.100.0100.01016.44
7.4.90.0000.01716.61
7.4.80.0090.00919.39
7.4.70.0080.00816.73
7.4.60.0060.01016.27
7.4.50.0000.00916.58
7.4.40.0090.00616.55
7.4.30.0090.00616.67
7.4.00.0030.01014.87
7.3.330.0000.00613.25
7.3.320.0000.00613.21
7.3.310.0050.00216.19
7.3.300.0070.00016.25
7.3.290.0040.01216.21
7.3.280.0070.01116.20
7.3.270.0130.00316.39
7.3.260.0120.01016.18
7.3.250.0170.00416.40
7.3.240.0080.00816.30
7.3.230.0110.01116.49
7.3.210.0120.01216.52
7.3.200.0170.00616.36
7.3.190.0150.00716.45
7.3.180.0120.00316.22
7.3.170.0100.00716.29
7.3.160.0060.01816.53
7.3.120.0040.01114.75
7.2.330.0090.00916.34
7.2.320.0080.01316.35
7.2.310.0060.01316.64
7.2.300.0140.01116.48
7.2.290.0030.01316.38
7.2.60.0040.01116.33
7.1.200.0030.00615.67
7.1.70.0030.00517.00
7.1.60.0030.02119.40
7.1.50.0100.00616.98
7.1.00.0000.03722.51
7.0.200.0000.00716.69
7.0.140.0070.07021.99
7.0.120.0000.07022.19
7.0.60.0100.07719.92
7.0.50.0070.08317.88
7.0.40.0100.06020.05
7.0.30.0230.04320.23
7.0.20.0270.05720.16
7.0.10.0230.07320.22
7.0.00.0070.09020.29
5.6.280.0100.06720.89
5.6.210.0030.04320.55
5.6.200.0000.08018.16
5.6.190.0070.08720.49
5.6.180.0300.07720.66
5.6.170.0330.06020.47
5.6.160.0100.08020.54
5.6.150.0000.08318.17
5.6.140.0100.04718.27
5.6.130.0000.06318.19
5.6.120.0000.05721.00
5.6.110.0070.03721.00
5.6.100.0030.04021.01
5.6.90.0100.08020.98
5.6.80.0070.05720.31
5.6.70.0300.07020.36
5.5.350.0400.07020.44
5.5.340.0100.07318.07
5.5.330.0000.08720.57
5.5.320.0230.04320.20
5.5.310.0330.06320.26
5.5.300.0100.05017.95
5.5.290.0070.05017.99
5.5.280.0000.04320.78
5.5.270.0030.08720.88
5.5.260.0100.08320.75
5.5.250.0130.06020.66
5.5.240.0130.07720.18
5.4.450.1730.04019.48
5.4.440.1930.04319.52
5.4.430.2030.04019.52
5.4.420.1800.03319.54
5.4.410.2000.04019.35
5.4.400.1930.04319.22
5.4.390.1730.04318.95
5.4.380.1970.04718.95
5.4.370.1670.03719.22
5.4.360.2130.03319.13
5.4.350.1730.04719.21
5.4.340.1830.04019.18
5.4.320.2070.03719.13
5.4.310.2230.04718.87
5.4.300.1930.03318.94
5.4.290.1800.04719.15
5.4.280.1870.04019.22
5.4.270.2100.04319.22
5.4.260.1830.04019.22
5.4.250.2130.04019.07
5.4.240.2300.04319.18
5.4.230.2130.03718.83
5.4.220.1970.03318.84
5.4.210.1930.03318.97
5.4.200.1830.04018.95
5.4.190.1970.03719.08
5.4.180.1730.03318.99
5.4.170.2270.04318.96
5.4.160.2330.04018.82
5.4.150.2270.04718.81
5.4.140.2030.03316.50
5.4.130.2030.03716.49
5.4.120.2070.03716.38
5.4.110.2000.04316.54
5.4.100.2030.04016.59
5.4.90.2330.03716.19
5.4.80.1970.03716.57
5.4.70.1870.04016.23
5.4.60.2000.04016.43
5.4.50.1930.02716.48
5.4.40.2200.04016.33
5.4.30.2000.04316.21
5.4.20.2200.03716.52
5.4.10.1900.03316.48
5.4.00.1930.03015.75
5.3.290.1830.03714.64
5.3.280.1930.03714.51
5.3.270.2070.04314.50
5.3.260.1870.04314.58
5.3.250.0970.05314.63
5.3.240.0000.05714.75
5.3.230.0070.04014.52
5.3.220.0600.06714.47
5.3.210.2000.04314.65
5.3.200.2100.04314.49
5.3.190.2770.04314.54
5.3.180.2070.04714.68
5.3.170.2070.04014.71
5.3.160.2030.04314.61
5.3.150.2000.05014.58
5.3.140.1870.03714.53
5.3.130.1830.03714.70
5.3.120.1830.03714.57
5.3.110.2200.03314.55
5.3.100.2100.04313.94
5.3.90.1870.04013.99
5.3.80.1970.03313.94
5.3.70.2030.04013.95
5.3.60.2070.04713.93
5.3.50.1770.04013.96
5.3.40.1870.03313.86
5.3.30.2130.03313.99
5.3.20.2330.03013.84
5.3.10.2070.04313.67
5.3.00.1970.03313.56
5.2.170.1570.03311.06
5.2.160.1530.03711.38
5.2.150.1670.03711.08
5.2.140.1730.03311.23
5.2.130.1530.03311.34
5.2.120.1600.02711.19
5.2.110.1570.03011.06
5.2.100.1600.02711.08
5.2.90.1830.03011.11
5.2.80.1770.03311.24
5.2.70.1600.03011.18
5.2.60.1770.02711.06
5.2.50.1600.02711.11
5.2.40.1370.02010.91
5.2.30.1200.03310.97
5.2.20.1430.03010.89
5.2.10.1270.02310.77
5.2.00.1300.02710.61
5.1.60.1330.01710.13
5.1.50.1300.0209.93
5.1.40.1200.03010.06
5.1.30.1630.02310.42
5.1.20.1300.02710.35
5.1.10.1300.02310.08
5.1.00.1200.03010.08
5.0.50.0700.0238.55
5.0.40.0670.0208.50
5.0.30.0830.0278.27
5.0.20.0700.0208.11
5.0.10.0700.0208.08
5.0.00.0630.0308.10
4.4.90.0800.0238.07
4.4.80.0800.0238.07
4.4.70.0730.0138.07
4.4.60.0630.0208.07
4.4.50.0600.0178.07
4.4.40.0770.0378.07
4.4.30.0600.0208.07
4.4.20.0800.0238.07
4.4.10.0600.0238.07
4.4.00.0970.0338.07
4.3.110.0730.0178.07
4.3.100.0830.0178.07
4.3.90.0700.0178.07
4.3.80.0770.0208.07
4.3.70.0800.0208.07
4.3.60.0730.0238.07
4.3.50.0730.0178.07
4.3.40.0730.0278.07
4.3.30.0000.0308.07
4.3.20.0000.0208.07
4.3.10.0000.0338.07
4.3.00.0030.0238.07

preferences:
65.1 ms | 401 KiB | 5 Q