3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __call($method, $arguments) { static $x; if ($x === null) { $x = get_class($this); } return $x; } } class B extends A { } $a = new A(); $b = new B(); echo $a->m()."\n"; echo $b->m()."\n";

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.4.20.0040.01117.85
8.4.10.0080.00019.63
8.3.140.0040.00418.93
8.3.130.0050.00318.39
8.3.120.0060.00319.01
8.3.110.0030.00620.94
8.3.100.0100.00616.57
8.3.90.0060.00326.77
8.3.80.0030.00618.31
8.3.70.0110.00416.75
8.3.60.0120.00316.50
8.3.50.0110.00718.36
8.3.40.0070.01418.50
8.3.30.0120.00318.75
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0030.00726.16
8.2.260.0120.00416.36
8.2.250.0000.00817.04
8.2.240.0070.01117.20
8.2.230.0080.00022.58
8.2.220.0000.01637.54
8.2.210.0000.00726.77
8.2.200.0070.00316.50
8.2.190.0140.00716.63
8.2.180.0030.01025.92
8.2.170.0140.00018.96
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00421.06
8.2.110.0070.00321.00
8.2.100.0090.00317.66
8.2.90.0040.00418.22
8.2.80.0060.00317.97
8.2.70.0060.00317.93
8.2.60.0050.00317.80
8.2.50.0060.00618.05
8.2.40.0040.00418.16
8.2.30.0000.00818.05
8.2.20.0000.00718.09
8.2.10.0000.00719.32
8.2.00.0040.00419.16
8.1.310.0070.01016.79
8.1.300.0080.00017.90
8.1.290.0080.00430.84
8.1.280.0170.00325.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00817.36
8.1.230.0040.00720.93
8.1.220.0080.00017.74
8.1.210.0040.00418.96
8.1.200.0040.00417.22
8.1.190.0050.00317.25
8.1.180.0000.00818.10
8.1.170.0040.00420.44
8.1.160.0030.00518.89
8.1.150.0040.00418.80
8.1.140.0000.00718.77
8.1.130.0000.00820.13
8.1.120.0000.00717.45
8.1.110.0040.00417.37
8.1.100.0070.00017.47
8.1.90.0070.00017.45
8.1.80.0000.00917.39
8.1.70.0000.00717.45
8.1.60.0080.00017.59
8.1.50.0030.00617.58
8.1.40.0000.00817.53
8.1.30.0050.00217.63
8.1.20.0000.00717.67
8.1.10.0000.00817.45
8.1.00.0030.00617.48
8.0.300.0070.00020.04
8.0.290.0030.00616.72
8.0.280.0060.00318.45
8.0.270.0000.00818.06
8.0.260.0000.00818.32
8.0.250.0080.00016.95
8.0.240.0000.00716.97
8.0.230.0070.00016.98
8.0.220.0030.00316.83
8.0.210.0040.00416.86
8.0.200.0060.00016.98
8.0.190.0030.00517.00
8.0.180.0000.00816.93
8.0.170.0040.00416.91
8.0.160.0040.00416.79
8.0.150.0040.00416.83
8.0.140.0090.00016.89
8.0.130.0000.00713.30
8.0.120.0040.00416.90
8.0.110.0000.00716.91
8.0.100.0080.00016.77
8.0.90.0070.00017.01
8.0.80.0070.01016.93
8.0.70.0000.00716.93
8.0.60.0040.00416.73
8.0.50.0050.00216.96
8.0.30.0090.00616.92
8.0.20.0110.00516.94
8.0.10.0110.00417.04
8.0.00.0070.01117.00
7.4.330.0000.00515.55
7.4.320.0000.00616.52
7.4.300.0060.00016.53
7.4.290.0030.00616.52
7.4.280.0040.00416.61
7.4.270.0030.00316.64
7.4.260.0000.00613.35
7.4.250.0030.00316.43
7.4.240.0050.00316.66
7.4.230.0030.00316.32
7.4.220.0040.00416.39
7.4.210.0070.00916.62
7.4.200.0000.00716.61
7.4.160.0060.00716.53
7.4.150.0020.01316.63
7.4.140.0060.00716.47
7.4.130.0070.00916.50
7.4.120.0080.00616.54
7.4.110.0090.00516.43
7.4.100.0060.00716.50
7.4.90.0070.00716.49
7.4.80.0090.00516.43
7.4.70.0080.00716.48
7.4.60.0070.00516.56
7.4.50.0080.00716.36
7.4.40.0070.01016.31
7.4.30.0090.00516.48
7.4.20.0070.00816.51
7.4.10.0080.00516.48
7.4.00.0050.00916.51
7.3.330.0000.00716.27
7.3.320.0000.00613.20
7.3.310.0070.00016.35
7.3.300.0060.00016.43
7.3.290.0080.00816.41
7.3.270.0070.00716.33
7.3.260.0060.00816.38
7.3.250.0080.00616.33
7.3.240.0080.00716.27
7.3.230.0120.00316.34
7.3.220.0080.00716.28
7.3.210.0050.00816.31
7.3.200.0050.00916.26
7.3.190.0060.00816.27
7.3.180.0090.00516.29
7.3.170.0090.00416.28
7.3.160.0060.01016.25
7.3.150.0070.00716.29
7.3.140.0030.01016.25
7.3.130.0030.01016.30
7.3.120.0040.00916.30
7.3.110.0050.01016.20
7.3.100.0080.00916.24
7.3.90.0100.00516.55
7.3.80.0110.00316.26
7.3.70.0090.00616.35
7.3.60.0090.00816.40
7.3.50.0040.00916.42
7.3.40.0050.01016.38
7.3.30.0060.00816.41
7.3.20.0050.00917.62
7.3.10.0120.00318.14
7.3.00.0070.00818.16
7.2.340.0200.00616.34
7.2.330.0150.00916.35
7.2.320.0100.01616.31
7.2.310.0130.01116.37
7.2.300.0160.00816.33
7.2.290.0140.01116.31
7.2.280.0160.00916.34
7.2.270.0170.00616.31
7.2.260.0180.00516.35
7.2.250.0130.01116.34
7.2.240.0180.00616.34
7.2.230.0170.00716.35
7.2.220.0170.00616.33
7.2.210.0190.00516.39
7.2.200.0110.01516.54
7.2.190.0210.00616.50
7.2.180.0140.01016.44
7.2.170.0150.00816.51
7.2.160.0160.00916.56
7.2.150.0150.00918.39
7.2.140.0160.00918.45
7.2.130.0180.00718.55
7.2.120.0170.00718.56
7.2.110.0210.00518.48
7.2.100.0170.01018.45
7.2.90.0160.00818.48
7.2.80.0200.00318.38
7.2.70.0140.01018.39
7.2.60.0080.01718.38
7.2.50.0150.00918.44
7.2.40.0170.00918.42
7.2.30.0170.00718.47
7.2.20.0120.01218.49
7.2.10.0200.00318.45
7.2.00.0190.00718.51
7.1.330.0140.00817.36
7.1.320.0170.00717.27
7.1.310.0150.00717.39
7.1.300.0190.00517.47
7.1.290.0150.00817.43
7.1.280.0130.00817.39
7.1.270.0180.00417.40
7.1.260.0150.00617.36
7.1.250.0150.00717.34
7.1.240.0170.00517.34
7.1.230.0190.00617.36
7.1.220.0130.01017.41
7.1.210.0120.01017.38
7.1.200.0180.00417.38
7.1.190.0130.00917.43
7.1.180.0170.00717.30
7.1.170.0160.00717.30
7.1.160.0160.00917.38
7.1.150.0130.00817.33
7.1.140.0130.00917.38
7.1.130.0140.00917.37
7.1.120.0180.00417.32
7.1.110.0130.00817.35
7.1.100.0110.01117.29
7.1.90.0190.00717.31
7.1.80.0160.00917.42
7.1.70.0230.00417.08
7.1.60.0190.00517.45
7.1.50.0150.00717.41
7.1.40.0130.01017.38
7.1.30.0090.01317.44
7.1.20.0190.00517.34
7.1.10.0100.01217.26
7.1.00.0120.01017.31
7.0.330.0160.00517.02
7.0.320.0140.00816.92
7.0.310.0160.00416.98
7.0.300.0180.00416.97
7.0.290.0130.01017.00
7.0.280.0110.00916.98
7.0.270.0140.00917.02
7.0.260.0150.00517.01
7.0.250.0170.00517.11
7.0.240.0200.00617.09
7.0.230.0150.00917.07
7.0.220.0160.00917.06
7.0.210.0100.01317.11
7.0.200.0140.00716.97
7.0.190.0160.00617.10
7.0.180.0140.01017.08
7.0.170.0150.00617.02
7.0.160.0120.01017.00
7.0.150.0160.00416.91
7.0.140.0130.00716.93
7.0.130.0160.00517.05
7.0.120.0110.01017.04
7.0.110.0150.00817.03
7.0.100.0140.00717.03
7.0.90.0130.00716.95
7.0.80.0160.00616.89
7.0.70.0150.00716.87
7.0.60.0170.00416.92
7.0.50.0100.01016.89
7.0.40.0170.00317.07
7.0.30.0130.01217.03
7.0.20.0170.00316.97
7.0.10.0190.00317.05
7.0.00.0120.00816.98
5.6.400.0130.01015.79
5.6.390.0150.00715.84
5.6.380.0120.01015.90
5.6.370.0150.00815.96
5.6.360.0110.01215.88
5.6.350.0110.01515.82
5.6.340.0130.00915.96
5.6.330.0100.01415.85
5.6.320.0140.00815.74
5.6.310.0150.01015.81
5.6.300.0160.00615.58
5.6.290.0140.00715.84
5.6.280.0130.00815.88
5.6.270.0170.00715.77
5.6.260.0120.01115.76
5.6.250.0140.00915.92
5.6.240.0110.01115.92
5.6.230.0090.01416.06
5.6.220.0170.00715.83
5.6.210.0160.00615.91
5.6.200.0140.00816.03
5.6.190.0110.01115.94
5.6.180.0140.01015.96
5.6.170.0170.00616.00
5.6.160.0180.00416.13
5.6.150.0180.00416.00
5.6.140.0100.01115.91
5.6.130.0130.00815.92
5.6.120.0110.01115.97
5.6.110.0110.01115.85
5.6.100.0180.00815.87
5.6.90.0110.01015.85
5.6.80.0150.00715.72
5.6.70.0100.01116.03
5.6.60.0150.00715.98
5.6.50.0160.00615.81
5.6.40.0160.00615.88
5.6.30.0140.00815.83
5.6.20.0140.00915.81
5.6.10.0090.01415.88
5.6.00.0100.01315.89
5.5.380.0130.00915.92
5.5.370.0180.00416.00
5.5.360.0150.00815.79
5.5.350.0170.00415.76
5.5.340.0120.00915.76
5.5.330.0130.01315.81
5.5.320.0160.00915.78
5.5.310.0130.01215.69
5.5.300.0100.01115.73
5.5.290.0120.01015.83
5.5.280.0150.00715.87
5.5.270.0120.01215.79
5.5.260.0120.01015.77
5.5.250.0100.01315.93
5.5.240.0130.00915.95
5.5.230.0150.00715.88
5.5.220.0140.00815.88
5.5.210.0120.01015.89
5.5.200.0130.00815.72
5.5.190.0150.00715.70
5.5.180.0120.01015.69
5.5.170.0140.00815.72
5.5.160.0090.01915.79
5.5.150.0160.00615.67
5.5.140.0160.00815.56
5.5.130.0130.01015.57
5.5.120.0130.00815.55
5.5.110.0120.01015.61
5.5.100.0090.01315.81
5.5.90.0160.00715.79
5.5.80.0120.00915.86
5.5.70.0130.00915.96
5.5.60.0090.01215.86
5.5.50.0150.01015.83
5.5.40.0130.00915.95
5.5.30.0110.01015.84
5.5.20.0130.00915.80
5.5.10.0090.01115.69
5.5.00.0130.01015.75
5.4.450.0080.00812.74
5.4.440.0100.00712.70
5.4.430.0120.00812.74
5.4.420.0120.00412.71
5.4.410.0100.00712.68
5.4.400.0080.00812.73
5.4.390.0120.00512.66
5.4.380.0080.00812.72
5.4.370.0090.01112.72
5.4.360.0100.00812.71
5.4.350.0130.00412.73
5.4.340.0120.00712.66
5.4.330.0130.00512.73
5.4.320.0140.00412.80
5.4.310.0110.00812.76
5.4.300.0150.00412.83
5.4.290.0150.00712.73
5.4.280.0120.00512.73
5.4.270.0120.00412.81
5.4.260.0060.01012.62
5.4.250.0080.00912.72
5.4.240.0120.00512.65
5.4.230.0080.00812.46
5.4.220.0130.00612.49
5.4.210.0100.00712.49
5.4.200.0090.00912.52
5.4.190.0110.00612.60
5.4.180.0110.00612.51
5.4.170.0080.00912.58
5.4.160.0130.00612.55
5.4.150.0120.00512.56
5.4.140.0110.00512.71
5.4.130.0150.00212.65
5.4.120.0120.00412.70
5.4.110.0120.00612.68
5.4.100.0100.00812.65
5.4.90.0120.00912.68
5.4.80.0120.00512.72
5.4.70.0090.00912.78
5.4.60.0150.00312.69
5.4.50.0090.00812.71
5.4.40.0100.00712.71
5.4.30.0100.00812.72
5.4.20.0130.00612.69
5.4.10.0120.00712.79
5.4.00.0130.00712.50
5.3.290.0090.01013.24
5.3.280.0130.00313.00
5.3.270.0080.01113.15
5.3.260.0080.00913.12
5.3.250.0130.00413.04
5.3.240.0090.00813.03
5.3.230.0080.01012.96
5.3.220.0100.00812.90
5.3.210.0070.01312.85
5.3.200.0120.00812.99
5.3.190.0120.00813.05
5.3.180.0100.00713.03
5.3.170.0150.00313.17
5.3.160.0130.00613.12
5.3.150.0130.00513.08
5.3.140.0130.00612.96
5.3.130.0160.00513.05
5.3.120.0150.00813.03
5.3.110.0130.00813.03
5.3.100.0110.01013.03
5.3.90.0100.00813.17
5.3.80.0130.00612.91
5.3.70.0140.00612.94
5.3.60.0140.00513.08
5.3.50.0140.00612.93
5.3.40.0090.01212.93
5.3.30.0120.00813.22
5.3.20.0160.00413.05
5.3.10.0110.00812.96
5.3.00.0030.01612.88
5.2.170.0070.00812.32
5.2.160.0080.00912.05
5.2.150.0080.00812.11
5.2.140.0110.00812.05
5.2.130.0130.00511.93
5.2.120.0120.00712.02
5.2.110.0110.00512.02
5.2.100.0150.00412.05
5.2.90.0140.00511.92
5.2.80.0090.00811.93
5.2.70.0140.00512.01
5.2.60.0050.01111.74
5.2.50.0090.00911.90
5.2.40.0100.00411.97
5.2.30.0080.00812.03
5.2.20.0110.00611.86
5.2.10.0040.01111.83
5.2.00.0100.00611.63
5.1.60.0080.00611.13
5.1.50.0030.01010.94
5.1.40.0050.00811.30
5.1.30.0040.01011.20
5.1.20.0080.00811.23
5.1.10.0060.01011.28
5.1.00.0070.00910.98
5.0.50.0040.00910.02
5.0.40.0100.00210.15
5.0.30.0110.0009.90
5.0.20.0050.0059.91
5.0.10.0090.0039.73
5.0.00.0070.0049.80
4.4.90.0080.0018.97
4.4.80.0040.0058.97
4.4.70.0030.0048.97
4.4.60.0020.0058.97
4.4.50.0050.0028.97
4.4.40.0030.0048.97
4.4.30.0030.0058.97
4.4.20.0070.0028.97
4.4.10.0050.0028.97
4.4.00.0050.0058.97
4.3.110.0020.0058.97
4.3.100.0030.0058.97
4.3.90.0050.0018.97
4.3.80.0060.0028.97
4.3.70.0060.0018.97
4.3.60.0050.0028.97
4.3.50.0040.0038.97
4.3.40.0040.0048.97
4.3.30.0030.0058.97
4.3.20.0050.0018.97
4.3.10.0030.0038.97
4.3.00.0030.0048.97

preferences:
41.99 ms | 403 KiB | 5 Q