3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_strtolower(string $arg) { } $rf = new \ReflectionFunction('my_strtolower'); $params = $rf->getParameters(); echo "Userspace: ", $params[0]->getType(), "\n"; $rf = new \ReflectionFunction('strtolower'); $params = $rf->getParameters(); echo "Builtin: ", $params[0]->getType(), "\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.3.60.0040.01116.63
8.3.50.0070.00716.13
8.3.40.0120.00318.84
8.3.30.0070.00718.70
8.3.20.0040.00420.13
8.3.10.0040.00421.91
8.3.00.0030.00519.68
8.2.180.0070.01116.75
8.2.170.0070.01422.96
8.2.160.0140.00021.09
8.2.150.0000.00724.18
8.2.140.0070.00024.66
8.2.130.0000.00720.51
8.2.120.0040.00426.35
8.2.110.0070.00322.08
8.2.100.0060.00617.69
8.2.90.0050.00319.19
8.2.80.0080.00017.97
8.2.70.0080.00017.50
8.2.60.0080.00018.03
8.2.50.0000.00918.10
8.2.40.0000.00822.32
8.2.30.0050.00219.34
8.2.20.0040.00418.01
8.2.10.0030.00518.13
8.2.00.0000.00818.26
8.1.280.0120.00625.92
8.1.270.0000.01223.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00423.80
8.1.230.0070.00417.83
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0030.00617.23
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0060.00318.31
8.1.160.0080.00018.71
8.1.150.0070.00020.12
8.1.140.0000.00719.48
8.1.130.0060.00318.96
8.1.120.0040.00417.45
8.1.110.0080.00017.43
8.1.100.0090.00017.32
8.1.90.0000.00717.43
8.1.80.0000.00817.40
8.1.70.0030.00317.31
8.1.60.0000.00817.54
8.1.50.0040.00417.48
8.1.40.0040.00417.34
8.1.30.0070.00017.58
8.1.20.0040.00417.65
8.1.10.0050.00217.55
8.1.00.0040.00417.53
8.0.300.0000.00818.77
8.0.290.0040.00416.58
8.0.280.0000.00718.40
8.0.270.0030.00317.25
8.0.260.0000.00619.06
8.0.250.0030.00316.84
8.0.240.0040.00417.01
8.0.230.0030.00316.80
8.0.220.0080.00016.83
8.0.210.0050.00316.81
8.0.200.0000.00616.91
8.0.190.0000.00816.90
8.0.180.0040.00416.81
8.0.170.0040.00416.88
8.0.160.0040.00416.73
8.0.150.0070.00416.69
8.0.140.0050.00216.83
8.0.130.0000.00613.24
8.0.120.0080.00016.83
8.0.110.0040.00416.74
8.0.100.0030.00516.83
8.0.90.0000.00716.69
8.0.80.0110.00416.85
8.0.70.0000.00816.84
8.0.60.0000.00716.85
8.0.50.0000.00716.84
8.0.30.0100.00917.16
8.0.20.0100.00917.41
8.0.10.0040.00416.76
8.0.00.0100.00716.97
7.4.330.0050.00015.55
7.4.320.0030.00316.43
7.4.300.0000.00616.52
7.4.290.0070.00016.46
7.4.280.0040.00416.45
7.4.270.0000.00716.55
7.4.260.0030.00316.55
7.4.250.0000.00716.42
7.4.240.0040.00416.38
7.4.230.0030.00316.44
7.4.220.0110.00716.54
7.4.210.0080.00816.53
7.4.200.0000.00716.66
7.4.160.0080.00916.47
7.4.150.0120.00617.40
7.4.140.0100.01017.86
7.4.130.0110.00916.45
7.4.120.0140.00516.48
7.4.110.0160.01016.69
7.4.100.0070.01116.35
7.4.90.0000.01716.66
7.4.80.0100.00719.39
7.4.70.0060.01016.38
7.4.60.0080.00816.52
7.4.50.0060.00616.54
7.4.40.0050.01016.58
7.4.30.0130.00316.63
7.4.00.0130.00514.77
7.3.330.0030.00313.24
7.3.320.0050.00013.06
7.3.310.0000.00616.23
7.3.300.0030.00316.25
7.3.290.0000.00716.11
7.3.280.0100.00916.25
7.3.270.0090.00917.40
7.3.260.0090.00816.46
7.3.250.0090.00916.54
7.3.240.0070.01116.50
7.3.230.0110.00616.36
7.3.210.0200.00016.65
7.3.200.0170.00716.43
7.3.190.0000.01516.46
7.3.180.0070.01016.30
7.3.170.0070.01116.45
7.3.160.0030.01316.51
7.3.120.0100.00715.05
7.3.110.0080.01214.96
7.3.100.0090.00614.82
7.3.90.0060.00914.51
7.3.80.0040.01114.82
7.3.70.0000.01514.82
7.3.60.0090.00614.56
7.3.50.0100.00314.84
7.3.40.0000.01214.70
7.3.30.0090.00614.89
7.3.20.0040.01216.43
7.3.10.0120.00016.38
7.3.00.0000.01516.63
7.2.330.0170.00316.60
7.2.320.0050.01116.61
7.2.310.0120.00316.45
7.2.300.0140.00916.73
7.2.290.0080.00816.49
7.2.250.0110.00714.93
7.2.240.0090.01214.89
7.2.230.0100.01015.27
7.2.220.0040.00815.04
7.2.210.0070.00714.76
7.2.200.0060.00314.66
7.2.190.0120.00314.93
7.2.180.0070.00415.17
7.2.170.0060.00614.99
7.2.110.0080.00816.55
7.2.60.0090.00616.80
7.2.00.0090.00319.27
7.1.330.0030.00915.73
7.1.320.0070.01015.70
7.1.310.0070.00715.34
7.1.300.0100.00015.48
7.1.290.0040.00815.83
7.1.280.0050.00815.79
7.1.270.0000.01015.64
7.1.260.0070.00715.47
7.1.200.0090.00315.61
7.1.70.0000.00717.03
7.1.60.0000.01217.20
7.1.50.0080.01516.82
7.1.40.0170.00734.41
7.1.30.0100.01334.47
7.1.20.0170.00734.39
7.1.10.0000.01016.39
7.1.00.0030.00716.51
7.0.200.0030.01316.84
7.0.180.0000.01016.13
7.0.170.0070.00316.06
7.0.160.0030.00716.30
7.0.150.0070.00316.07
7.0.140.0200.01014.44
7.0.130.0230.00714.56
7.0.120.0230.01016.31
7.0.110.0000.01016.13
7.0.100.0000.01016.31
7.0.90.0000.01016.19
7.0.80.0230.00714.52
7.0.70.0000.01316.11
7.0.60.0000.01015.93
7.0.50.0170.01014.61
7.0.40.0200.00714.76
7.0.30.0200.00714.36
7.0.20.0000.01016.43
7.0.10.0070.00316.46
7.0.00.0030.00716.28

preferences:
59.3 ms | 401 KiB | 5 Q