3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Cat { function name() { return 'Nekomander'; } } # USE the Cat class, to create an OBJECT. Store this object into the $cat variable $cat = new Cat; # USE the function inside the object. echo $cat->name();

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.0000.01618.31
8.3.50.0120.00918.24
8.3.40.0070.01118.78
8.3.30.0110.00418.63
8.3.20.0040.00421.77
8.3.10.0080.00021.78
8.3.00.0080.00021.82
8.2.180.0120.00616.38
8.2.170.0070.00722.96
8.2.160.0070.00720.51
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0030.00620.87
8.2.120.0040.00426.35
8.2.110.0060.00320.52
8.2.100.0080.00417.91
8.2.90.0090.00017.63
8.2.80.0050.00318.84
8.2.70.0000.00817.63
8.2.60.0000.00918.09
8.2.50.0040.00718.10
8.2.40.0000.00819.48
8.2.30.0000.00820.36
8.2.20.0000.00718.05
8.2.10.0000.00719.24
8.2.00.0070.00017.89
8.1.280.0170.00325.92
8.1.270.0040.00718.63
8.1.260.0050.00226.35
8.1.250.0050.00328.09
8.1.240.0040.00821.99
8.1.230.0000.01122.15
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0090.00317.23
8.1.190.0000.00718.88
8.1.180.0030.00618.10
8.1.170.0000.00818.38
8.1.160.0040.00418.77
8.1.150.0000.00918.77
8.1.140.0000.00718.94
8.1.130.0030.00320.14
8.1.120.0040.00417.42
8.1.110.0040.00417.36
8.1.100.0040.00417.29
8.1.90.0070.00017.32
8.1.80.0030.00617.37
8.1.70.0030.00717.29
8.1.60.0000.00717.57
8.1.50.0080.00017.52
8.1.40.0080.00017.42
8.1.30.0000.00817.49
8.1.20.0000.00817.61
8.1.10.0000.00717.55
8.1.00.0020.00517.50
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0040.00418.38
8.0.270.0030.00317.25
8.0.260.0000.00118.30
8.0.250.0030.00516.84
8.0.240.0030.00316.84
8.0.230.0070.00016.84
8.0.220.0000.00716.69
8.0.210.0000.00716.86
8.0.200.0030.00316.89
8.0.190.0000.00716.74
8.0.180.0000.00816.81
8.0.170.0050.00316.74
8.0.160.0060.00316.84
8.0.150.0000.00716.71
8.0.140.0000.00716.67
8.0.130.0000.00613.29
8.0.120.0060.00316.83
8.0.110.0000.00716.71
8.0.100.0050.00316.91
8.0.90.0070.00016.65
8.0.80.0070.01016.88
8.0.70.0000.00816.76
8.0.60.0050.00316.67
8.0.50.0070.00016.79
8.0.30.0120.00816.98
8.0.20.0110.00816.74
8.0.10.0040.00316.82
8.0.00.0130.00816.86
7.4.330.0040.00015.55
7.4.320.0060.00016.35
7.4.300.0030.00316.35
7.4.290.0000.00816.59
7.4.280.0080.00016.59
7.4.270.0060.00316.60
7.4.260.0070.00016.34
7.4.250.0070.00016.54
7.4.240.0000.00716.48
7.4.230.0000.00716.68
7.4.220.0000.00816.56
7.4.210.0050.01016.54
7.4.200.0030.00316.66
7.4.160.0070.00916.58
7.4.140.0120.01217.86
7.4.130.0090.00916.34
7.4.120.0110.01016.44
7.4.110.0070.01016.55
7.4.100.0030.01516.33
7.4.90.0130.00916.32
7.4.80.0060.01119.39
7.4.70.0100.00916.38
7.4.60.0000.01516.31
7.4.50.0070.00316.39
7.4.40.0100.00616.29
7.4.00.0110.00515.06
7.3.330.0000.00513.07
7.3.320.0030.00313.02
7.3.310.0000.00716.32
7.3.300.0070.00016.25
7.3.290.0040.00416.11
7.3.280.0080.00816.19
7.3.260.0090.00816.36
7.3.240.0080.01116.32
7.3.230.0130.00316.54
7.3.210.0110.00816.30
7.3.200.0030.01316.55
7.3.190.0120.00616.40
7.3.180.0120.00316.39
7.3.170.0100.00616.36
7.3.160.0120.00616.32
7.3.120.0150.00614.88
7.3.110.0060.01214.45
7.3.100.0090.00614.66
7.3.90.0040.01114.96
7.3.80.0030.01214.70
7.3.70.0070.00314.81
7.3.60.0000.01114.59
7.3.50.0070.01014.42
7.3.40.0070.00614.71
7.3.30.0030.00814.56
7.3.20.0040.00816.56
7.3.10.0030.00916.46
7.3.00.0050.01316.59
7.2.330.0110.01116.43
7.2.320.0100.01416.34
7.2.310.0110.00516.45
7.2.300.0100.00716.36
7.2.290.0000.01516.68
7.2.250.0100.01015.12
7.2.240.0080.01114.96
7.2.230.0060.00615.18
7.2.220.0000.01814.93
7.2.210.0070.00314.93
7.2.200.0050.00514.93
7.2.190.0060.00614.58
7.2.180.0040.00815.05
7.2.170.0100.00515.03
7.2.160.0160.00615.03
7.2.150.0070.00416.80
7.2.140.0080.00416.77
7.2.130.0000.01316.48
7.2.120.0110.00416.89
7.2.110.0060.00916.89
7.2.100.0060.00916.80
7.2.90.0070.00716.57
7.2.80.0060.00616.85
7.2.70.0030.00916.93
7.2.60.0100.01316.76
7.2.50.0000.01316.87
7.2.40.0130.00316.77
7.2.30.0070.00716.80
7.2.20.0030.01116.98
7.2.10.0070.00717.06
7.2.00.0100.00317.01
7.1.330.0040.01115.64
7.1.320.0060.00615.70
7.1.310.0040.01115.75
7.1.300.0030.01015.68
7.1.290.0060.00615.62
7.1.280.0040.00615.65
7.1.270.0100.00415.61
7.1.260.0080.00515.61
7.1.250.0110.00315.57

preferences:
58.68 ms | 401 KiB | 5 Q