3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Example script that will import $born events into your Mixpanel projects for your existing users. Feel free to modify. If you have a high number of users you might want to use some sort of queing system instead of a sleep command to make sure that all the requests get sent propertly. */ /* Dummy Data: This array represents the data you would fetch from your own database that would have user_ids and the date you would like to set as their birthdate. Mixpanel will use this birthdate to determine their cohort. */ // zTripUserID,RegistrationDate,RegistrationZipCode,LastBookingDate $users = array( array(1177307,1399334400,90048,1427846400), array(1171746,1420070400,90048,1422748800) ); date_default_timezone_set("America/New_York"); //set for the timezone your sign up data is using. //Constructer: new EventImporter("Project Token","Project API Key"); //Both these values are on your mixpanel accounts page: http://mixpanel.com/account/ foreach($users as $id){ $props = array(); $props['zTripUserID'] = [$id][0]; //distinct_id should be your identifier echo "\nSending $event event for ".$props['zTripUserID'])\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)
5.6.80.0100.08020.41
5.5.240.0270.04320.26
5.4.400.0200.03319.31
5.4.390.0130.04318.97
5.4.380.0230.04719.16
5.4.370.0130.04019.19
5.4.360.0370.03319.07
5.4.350.0230.04319.22
5.4.340.0130.04018.98
5.4.320.0270.04019.31
5.4.310.0170.03719.20
5.4.300.0230.04018.97
5.4.290.0130.04019.14
5.4.280.0230.03318.95
5.4.270.0200.03318.86
5.4.260.0200.04719.21
5.4.250.0170.03719.23
5.4.240.0130.04718.99
5.4.230.0230.04319.14
5.4.220.0100.06718.94
5.4.210.0030.04718.83
5.4.200.0130.06019.18
5.4.190.0170.03719.12
5.4.180.0200.04019.12
5.4.170.0170.03719.12
5.4.160.0200.03319.23
5.4.150.0230.04319.19
5.4.140.0170.03716.32
5.4.130.0270.02716.45
5.4.120.0230.03016.38
5.4.110.0130.04016.36
5.4.100.0200.03316.45
5.4.90.0170.03716.33
5.4.80.0200.03316.43
5.4.70.0200.04316.51
5.4.60.0130.04016.48
5.4.50.0170.03716.23
5.4.40.0170.03716.27
5.4.30.0200.03316.33
5.4.20.0200.04316.42
5.4.10.0230.03016.23
5.4.00.0170.03715.94
5.3.290.0130.04014.62
5.3.280.0100.04314.64
5.3.270.0230.06314.48
5.3.260.0230.07014.62
5.3.250.0230.03714.45
5.3.240.0370.04314.65
5.3.230.0230.03314.43
5.3.220.0270.05014.47
5.3.210.0200.04014.52
5.3.200.0230.06714.62
5.3.190.0000.07314.51
5.3.180.0030.04714.42
5.3.170.1500.05314.42
5.3.160.2030.04014.51
5.3.150.1730.04014.61
5.3.140.1770.03714.57
5.3.130.2130.04014.38
5.3.120.1970.03714.41
5.3.110.1830.04014.41
5.3.100.1700.04013.89
5.3.90.1870.03313.93
5.3.80.2030.04013.90
5.3.70.1370.03013.87
5.3.60.0030.07013.86
5.3.50.0070.04713.92
5.3.40.1300.05313.91
5.3.30.2100.04013.89
5.3.20.2000.04013.55
5.3.10.1970.03713.61
5.3.00.1900.04313.73
5.2.170.1300.03711.10
5.2.160.1570.03010.99
5.2.150.1530.02311.17
5.2.140.1670.03711.23
5.2.130.1730.03310.96
5.2.120.1600.02011.16
5.2.110.0930.03710.99
5.2.100.0030.03311.15
5.2.90.0030.05311.01
5.2.80.0500.03710.98
5.2.70.1770.03711.11
5.2.60.1630.02710.98
5.2.50.1700.03311.02
5.2.40.1400.03710.85
5.2.30.1400.03010.80
5.2.20.1330.04010.90
5.2.10.1170.02711.02
5.2.00.1270.03710.68
5.1.60.1370.0309.88
5.1.50.1100.0309.97
5.1.40.1300.0309.95
5.1.30.1370.03010.23
5.1.20.1270.03010.27
5.1.10.0130.04010.16
5.1.00.0070.04710.12
5.0.50.0000.0309.21
5.0.40.0000.0279.21
5.0.30.0030.0309.21
5.0.20.0170.0239.21
5.0.10.0700.0279.21
5.0.00.0630.0279.21
4.4.90.0630.0209.21
4.4.80.0630.0139.21
4.4.70.0570.0179.21
4.4.60.0630.0139.21
4.4.50.0600.0179.21
4.4.40.0770.0279.21
4.4.30.0670.0139.21
4.4.20.0770.0179.21
4.4.10.0570.0179.21
4.4.00.0730.0339.21
4.3.110.0730.0279.21
4.3.100.0600.0139.21
4.3.90.0600.0209.21
4.3.80.0570.0279.21
4.3.70.0570.0179.21
4.3.60.0570.0179.21
4.3.50.0600.0139.21
4.3.40.0700.0309.21
4.3.30.0330.0209.21
4.3.20.0270.0179.21
4.3.10.0270.0179.21
4.3.00.0030.0139.21

preferences:
145.77 ms | 1394 KiB | 7 Q