3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function __invoke() { echo __CLASS__; } } class B extends A { } $b = new B; $b();

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.1.100.0000.00717.33
8.1.90.0050.00217.27
8.1.80.0030.00317.20
8.1.70.0000.01017.30
8.1.60.0000.00817.41
8.1.50.0000.00717.36
8.1.40.0030.00517.38
8.1.30.0040.00417.47
8.1.20.0040.00417.40
8.1.10.0000.00717.23
8.1.00.0040.00717.21
8.0.230.0000.00716.82
8.0.220.0030.00316.86
8.0.210.0070.00016.70
8.0.200.0000.00616.75
8.0.190.0060.00316.79
8.0.180.0070.00016.75
8.0.170.0030.00616.88
8.0.160.0000.00816.78
8.0.150.0020.00516.71
8.0.140.0070.00016.78
8.0.130.0080.00013.25
8.0.120.0000.00916.71
8.0.110.0040.00416.81
8.0.100.0000.00716.59
8.0.90.0050.00216.64
8.0.80.0060.00916.79
8.0.70.0000.00716.81
8.0.60.0040.00416.80
8.0.50.0000.00716.80
8.0.30.0130.00416.98
8.0.20.0120.00617.40
8.0.10.0000.00716.77
8.0.00.0060.01116.75
7.4.300.0060.00016.47
7.4.290.0000.00816.63
7.4.280.0040.00416.58
7.4.270.0030.00316.44
7.4.260.0070.00016.59
7.4.250.0040.00416.55
7.4.240.0060.00116.54
7.4.230.0000.00716.70
7.4.220.0090.01316.63
7.4.210.0110.00416.52
7.4.200.0070.00016.66
7.4.160.0140.00716.50
7.4.150.0180.02817.40
7.4.140.0080.01017.86
7.4.130.0060.01316.57
7.4.120.0120.00716.46
7.4.110.0100.01016.50
7.4.100.0100.00716.34
7.4.90.0090.00816.63
7.4.80.0150.00619.39
7.4.70.0060.01516.58
7.4.60.0090.01316.52
7.4.50.0030.00616.22
7.4.40.0080.00816.48
7.4.30.0190.01016.53
7.4.00.0090.00314.70
7.3.330.0000.00513.32
7.3.320.0000.00513.10
7.3.310.0040.00416.20
7.3.300.0040.00416.26
7.3.290.0110.00616.32
7.3.280.0100.00716.29
7.3.270.0100.00617.40
7.3.260.0070.01316.34
7.3.250.0090.00816.27
7.3.240.0130.01016.21
7.3.230.0000.02016.39
7.3.210.0080.00816.29
7.3.200.0070.01119.39
7.3.190.0100.01016.47
7.3.180.0060.01016.41
7.3.170.0140.00616.41
7.3.160.0070.01116.42
7.2.330.0090.01216.47
7.2.320.0100.00716.70
7.2.310.0060.01016.36
7.2.300.0090.00916.65
7.2.290.0140.00416.47
7.2.60.0030.00916.85
7.1.200.0030.00715.87
7.1.70.0060.01017.06
7.1.60.0060.01819.59
7.1.50.0150.00916.82
7.1.00.0000.08022.48
7.0.200.0590.00314.62
7.0.60.0000.04319.95
7.0.50.0070.08017.95
7.0.40.0000.06020.39
7.0.30.0270.06320.26
7.0.20.0230.06020.38
7.0.10.0100.08020.21
7.0.00.0100.08320.07
5.6.280.0030.06321.16
5.6.210.0170.06720.70
5.6.200.0030.07018.12
5.6.190.0030.09020.34
5.6.180.0300.04720.48
5.6.170.0200.05020.53
5.6.160.0070.05720.39
5.6.150.0070.08018.27
5.6.140.0030.09018.19
5.6.130.0070.07718.29
5.6.120.0030.05021.02
5.6.110.0100.07721.11
5.6.100.0030.04021.09
5.6.90.0030.04720.98
5.6.80.0130.04720.36
5.5.350.4070.03720.44
5.5.340.0070.08718.03
5.5.330.0130.07720.21
5.5.320.0230.03320.30
5.5.310.0200.04720.24
5.5.300.0130.03718.03
5.5.290.0100.08018.08
5.5.280.0300.03720.66
5.5.270.0030.09320.64
5.5.260.0130.07720.98
5.5.250.0070.08020.79
5.5.240.0070.02720.27
5.4.450.0700.05319.61
5.4.440.0700.05019.55
5.4.430.0570.06019.64
5.4.420.0630.05319.52
5.4.410.0600.05719.26
5.4.400.0570.04719.08
5.4.390.0570.05018.91
5.4.380.0600.04318.96
5.4.370.0630.04318.89
5.4.360.0670.05019.22
5.4.350.0670.04719.07
5.4.340.0670.05018.89
5.4.320.0630.05318.97
5.4.310.0600.05019.22
5.4.300.0730.04019.25
5.4.290.0670.05019.07
5.4.280.0670.05018.92
5.4.270.0600.05318.92
5.4.260.0570.06019.23
5.4.250.0600.05319.21
5.4.240.0530.05719.21
5.4.230.0630.05019.21
5.4.220.0130.04718.88
5.4.210.0030.05718.99
5.4.200.0170.04017.01
5.4.190.0570.05019.00
5.4.180.0770.03319.15
5.4.170.0570.05719.26
5.4.160.0600.05018.98
5.4.150.0700.04719.10
5.4.140.0630.05016.68
5.4.130.0730.03716.52
5.4.120.0730.03716.67
5.4.110.0700.05316.48
5.4.100.0870.03716.53
5.4.90.0570.05716.52
5.4.80.0530.05716.45
5.4.70.0630.05016.61
5.4.60.0630.04716.54
5.4.50.0430.05316.22
5.4.40.0370.06016.64
5.4.30.0100.04716.25
5.4.20.0170.04316.54
5.4.10.0630.05016.24
5.4.00.0730.04315.86
5.3.290.0630.05314.73
5.3.280.0630.05014.48
5.3.270.0600.05314.46
5.3.260.0530.05714.52
5.3.250.0670.04714.50
5.3.240.0600.05714.71
5.3.230.0630.05714.70
5.3.220.0670.04714.67
5.3.210.0700.05314.70
5.3.200.0830.04014.61
5.3.190.0670.04714.49
5.3.180.0630.05014.73
5.3.170.0600.05314.63
5.3.160.0700.06014.46
5.3.150.0730.05014.60
5.3.140.0730.05314.70
5.3.130.0530.06014.50
5.3.120.0700.04314.69
5.3.110.0530.05714.50
5.3.100.0600.05013.95
5.3.90.0530.05714.09
5.3.80.0670.05313.93
5.3.70.0730.04714.13
5.3.60.0570.05313.96
5.3.50.0770.04013.93
5.3.40.0670.04713.87
5.3.30.0400.04714.07
5.3.20.0030.05013.60
5.3.10.0230.04313.80
5.3.00.0930.06713.71
5.2.170.0630.04311.13
5.2.160.0570.03311.13
5.2.150.0400.05011.08
5.2.140.0600.03711.09
5.2.130.0600.04010.96
5.2.120.0530.03710.96
5.2.110.0530.03711.25
5.2.100.0400.05011.21
5.2.90.0470.04311.02
5.2.80.0530.03711.11
5.2.70.0470.04711.04
5.2.60.0500.04011.03
5.2.50.0530.04311.01
5.2.40.0370.04311.00
5.2.30.0430.03710.88
5.2.20.0500.03011.11
5.2.10.0400.04010.76
5.2.00.0470.03310.69
5.1.60.0470.0379.93
5.1.50.0370.03710.04
5.1.40.0370.0379.98
5.1.30.0430.03310.45
5.1.20.0400.03710.35
5.1.10.0400.03710.00
5.1.00.0430.04710.12
5.0.50.0230.0278.70
5.0.40.0200.0308.30
5.0.30.0170.0478.20
5.0.20.0170.0308.18
5.0.10.0130.0308.18
5.0.00.0200.0378.21
4.4.90.0170.0205.78
4.4.80.0170.0305.82
4.4.70.0230.0235.84
4.4.60.0170.0235.73
4.4.50.0170.0235.93
4.4.40.0270.0275.86
4.4.30.0200.0205.85
4.4.20.0100.0305.79
4.4.10.0200.0275.94
4.4.00.0200.0305.91
4.3.110.0200.0205.81
4.3.100.0170.0235.75
4.3.90.0230.0175.76
4.3.80.0200.0335.67
4.3.70.0200.0235.78
4.3.60.0170.0235.83
4.3.50.0170.0235.82
4.3.40.0170.0335.63
4.3.30.0100.0274.41
4.3.20.0100.0234.51
4.3.10.0130.0204.38
4.3.00.0100.0236.43

preferences:
12.79 ms | 406 KiB | 5 Q